mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-06 08:16:43 +00:00
Rename ollama prompt 'Function' word to 'Name'
This commit is contained in:
parent
b8a8b0847c
commit
e2af13550a
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue