This commit is contained in:
Timothy Jaeryang Baek
2026-04-17 10:44:29 +09:00
parent bd35809105
commit 398718d505
6 changed files with 32 additions and 3 deletions

View File

@@ -2618,7 +2618,10 @@ async def process_chat_payload(request, form_data, user, metadata, model):
# Resolve terminal tools if terminal_id is set (outside tool_ids check
# so system terminals work even when no other tools are selected)
if terminal_id:
terminal_capability = (model.get('info', {}).get('meta', {}).get('capabilities') or {}).get(
'terminal', True
)
if terminal_id and terminal_capability:
try:
terminal_result = await get_terminal_tools(
request,