mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00:00
refac/fix: tool response header type check
This commit is contained in:
parent
99d7773230
commit
680783266c
1 changed files with 3 additions and 1 deletions
|
|
@ -2555,7 +2555,9 @@ async def process_chat_response(
|
||||||
):
|
):
|
||||||
tool_result, tool_response_headers = tool_result
|
tool_result, tool_response_headers = tool_result
|
||||||
|
|
||||||
if tool_response_headers:
|
if tool_response_headers and isinstance(
|
||||||
|
tool_response_headers, dict
|
||||||
|
):
|
||||||
content_disposition = tool_response_headers.get(
|
content_disposition = tool_response_headers.get(
|
||||||
"Content-Disposition",
|
"Content-Disposition",
|
||||||
tool_response_headers.get(
|
tool_response_headers.get(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue