mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-28 01:31:28 +00:00
fix
This commit is contained in:
parent
2e20018a9e
commit
febc4d530d
1 changed files with 5 additions and 0 deletions
|
|
@ -2899,6 +2899,11 @@ async def upload_file_to_terminal(
|
|||
|
||||
terminal_url = connection.get('url', '').rstrip('/')
|
||||
|
||||
# Route through orchestrator policy endpoint if configured
|
||||
policy_id = connection.get('policy_id')
|
||||
if policy_id:
|
||||
terminal_url = f'{terminal_url}/p/{policy_id}'
|
||||
|
||||
# Build auth headers/cookies matching resolve_terminal_tools pattern
|
||||
auth_type = connection.get('auth_type', 'bearer')
|
||||
if auth_type == 'bearer':
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue