Fix gpt-oss response api streaming issue (#9368)

This commit is contained in:
Keyang Ru
2025-08-19 20:19:42 -07:00
committed by GitHub
parent e0ce171d79
commit f515449582
2 changed files with 4 additions and 2 deletions

View File

@@ -107,6 +107,8 @@ class HarmonyContext(ConversationContext):
return self._messages
def need_builtin_tool_call(self) -> bool:
if not self.messages:
return False
last_msg = self.messages[-1]
recipient = last_msg.recipient
return recipient is not None and (

View File

@@ -944,7 +944,7 @@ class OpenAIServingResponses(OpenAIServingChat):
type="output_text",
text="",
annotations=[],
logprobs=[],
logprobs=None,
),
)
)
@@ -992,7 +992,7 @@ class OpenAIServingResponses(OpenAIServingChat):
type="output_text",
text="",
annotations=[],
logprobs=[],
logprobs=None,
),
)
)