Skip to content

Commit 6f11661

Browse files
committed
debug
1 parent f6e8368 commit 6f11661

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llama_cpp/llama_chat_template.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,11 +406,15 @@ def _handle_streaming_tool_calls(
406406
accumulated_text = ""
407407
for chunk in completion_chunks:
408408
text = chunk["choices"][0]["text"]
409+
print("TEXT", text)
409410
accumulated_text += text
410411
stop_reason = chunk["choices"][0]["finish_reason"]
411412

413+
print("STOP REASON", stop_reason)
414+
412415
# Check if we hit a tool call
413416
if (stop_reason == "stop:<tool_call>"):
417+
print("TOOL CALL FOUND")
414418

415419
accumulated_text += "<tool_call>"
416420

0 commit comments

Comments
 (0)