[Bugfix] Fix the issue where reasoning_content is None when Thinkng is enabled and tool_choice is set to 'required'. (#20662)

Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
This commit is contained in:
Chauncey
2025-07-09 15:39:58 +08:00
committed by GitHub
parent f95570a52d
commit 2155e95ef1
2 changed files with 6 additions and 1 deletions

View File

@@ -1049,6 +1049,7 @@ class OpenAIServingChat(OpenAIServing):
message = ChatMessage(
role=role,
content="",
reasoning_content=reasoning_content,
tool_calls=[
tool_call_class(function=FunctionCall(
name=tool_call.name,