formatting: endlines

This commit is contained in:
Samuel 2024-11-10 09:54:51 +00:00
parent e825ebbcb9
commit 1ffde395f8
2 changed files with 4 additions and 4 deletions

View File

@ -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)

View File

@ -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,