HotFix: json serialization error when using OAI v1/batches endpoint with logprobs (#3896)
This commit is contained in:
committed by
GitHub
parent
18c27131f5
commit
f7f88b706c
@@ -1147,7 +1147,7 @@ def v1_chat_generate_response(
|
||||
"tool_calls": tool_calls,
|
||||
"reasoning_content": reasoning_text,
|
||||
},
|
||||
"logprobs": choice_logprobs,
|
||||
"logprobs": choice_logprobs.model_dump() if choice_logprobs else None,
|
||||
"finish_reason": (finish_reason["type"] if finish_reason else ""),
|
||||
"matched_stop": (
|
||||
finish_reason["matched"]
|
||||
|
||||
Reference in New Issue
Block a user