Rename ollama prompt 'Function' word to 'Name'
This commit is contained in:
parent
b8a8b0847c
commit
e2af13550a
@ -181,7 +181,7 @@ def ollama_pt(
|
||||
for call in message["tool_calls"]:
|
||||
function_name = call["function"]["name"]
|
||||
arguments = json.loads(call["function"]["arguments"])
|
||||
prompt += f"### Tool Call ({call["id"]}):\nFunction: {function_name}\nArguments: {json.dumps(arguments)}\n\n"
|
||||
prompt += f"### Tool Call ({call["id"]}):\nName: {function_name}\nArguments: {json.dumps(arguments)}\n\n"
|
||||
elif "tool_call_id" in message:
|
||||
prompt += f"### Tool Call Result ({message["tool_call_id"]}):\n{message["content"]}\n\n"
|
||||
elif content:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user