8000 fix: tool_call missing first token. · zeroAucrux/llama-cpp-python@c1325dc · GitHub
[go: up one dir, main page]

Skip to content

Commit c1325dc

Browse files
committed
fix: tool_call missing first token.
1 parent e325a83 commit c1325dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llama_cpp/llama_chat_format.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ def _stream_response_to_function_stream(
402402
"type": "function",
403403
"function": {
404404
"name": tool_name,
405-
"arguments": "",
405+
"arguments": chunk["choices"][0]["text"],
406406
},
407407
}
408408
],

0 commit comments

Comments
 (0)
0