mirror of
https://github.com/open-webui/open-webui
synced 2024-11-26 22:09:51 +00:00
formatting: endlines
This commit is contained in:
parent
e825ebbcb9
commit
1ffde395f8
@ -578,11 +578,11 @@ async def handle_nonstreaming_response(request: Request, response: Response,
|
||||
tool_function_name = tool_call["function"]["name"]
|
||||
if not tool_call["function"]["arguments"]:
|
||||
tool_function_params = {}
|
||||
else:
|
||||
else:
|
||||
if is_openai:
|
||||
tool_function_params = json.loads(tool_call["function"]["arguments"])
|
||||
tool_function_params = json.loads(tool_call["function"]["arguments"])
|
||||
if is_ollama:
|
||||
tool_function_params = tool_call["function"]["arguments"]
|
||||
tool_function_params = tool_call["function"]["arguments"]
|
||||
|
||||
try:
|
||||
tool_output = await tools[tool_function_name]["callable"](**tool_function_params)
|
||||
|
@ -12,7 +12,7 @@
|
||||
export let params = {
|
||||
// Advanced
|
||||
stream_response: null, // Set stream responses for this model individually
|
||||
native_tool_call: null,
|
||||
native_tool_call: null,
|
||||
seed: null,
|
||||
stop: null,
|
||||
temperature: null,
|
||||
|
Loading…
Reference in New Issue
Block a user