mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-26 15:20:59 -05:00
refac
This commit is contained in:
1 parent
6ef26be296
commit
8eb2cabf49
1 file changed
+1
-3
@@ -2751,9 +2751,7 @@ 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)
|
||||
terminal_capability = (model.get('info', {}).get('meta', {}).get('capabilities') or {}).get('terminal', True)
|
||||
terminal_connection_ids = {
|
||||
connection.get('id') for connection in await get_terminal_connections(user)
|
||||
}
|
||||
terminal_connection_ids = {connection.get('id') for connection in await get_terminal_connections(user)}
|
||||
if terminal_id and terminal_capability and terminal_id in terminal_connection_ids:
|
||||
try:
|
||||
terminal_result = await get_terminal_tools(
|
||||
|
||||
Reference in new issue
Block a user