mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
refac
This commit is contained in:
parent
5f9679253e
commit
2070d1096b
@ -1857,6 +1857,9 @@ async def process_chat_response(
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
tool_result = str(e)
|
tool_result = str(e)
|
||||||
|
|
||||||
|
if isinstance(tool_result, dict):
|
||||||
|
tool_result = json.dumps(tool_result)
|
||||||
|
|
||||||
results.append(
|
results.append(
|
||||||
{
|
{
|
||||||
"tool_call_id": tool_call_id,
|
"tool_call_id": tool_call_id,
|
||||||
|
Loading…
Reference in New Issue
Block a user