Skip to content

Commit 72b0b51

Browse files
committed
fix: apply missing _convert_text_completion_logprobs_to_chat
1 parent a41d866 commit 72b0b51

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

llama_cpp/llama_chat_format.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -3809,7 +3809,9 @@ def chatml_function_calling(
38093809
{
38103810
"finish_reason": "tool_calls",
38113811
"index": 0,
3812-
"logprobs": completion["choices"][0]["logprobs"],
3812+
"logprobs": _convert_text_completion_logprobs_to_chat(
3813+
completion["choices"][0]["logprobs"]
3814+
),
38133815
"message": {
38143816
"role": "assistant",
38153817
"content": None,

0 commit comments

Comments
 (0)