Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 72b0b51

Browse filesBrowse files
committed
fix: apply missing _convert_text_completion_logprobs_to_chat
1 parent a41d866 commit 72b0b51
Copy full SHA for 72b0b51

File tree

Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed

‎llama_cpp/llama_chat_format.py

Copy file name to clipboardExpand all lines: llama_cpp/llama_chat_format.py
+3-1Lines changed: 3 additions & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.