Fix gpt-oss response api streaming issue (#9368)
This commit is contained in:
@@ -107,6 +107,8 @@ class HarmonyContext(ConversationContext):
|
|||||||
return self._messages
|
return self._messages
|
||||||
|
|
||||||
def need_builtin_tool_call(self) -> bool:
|
def need_builtin_tool_call(self) -> bool:
|
||||||
|
if not self.messages:
|
||||||
|
return False
|
||||||
last_msg = self.messages[-1]
|
last_msg = self.messages[-1]
|
||||||
recipient = last_msg.recipient
|
recipient = last_msg.recipient
|
||||||
return recipient is not None and (
|
return recipient is not None and (
|
||||||
|
|||||||
@@ -944,7 +944,7 @@ class OpenAIServingResponses(OpenAIServingChat):
|
|||||||
type="output_text",
|
type="output_text",
|
||||||
text="",
|
text="",
|
||||||
annotations=[],
|
annotations=[],
|
||||||
logprobs=[],
|
logprobs=None,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@@ -992,7 +992,7 @@ class OpenAIServingResponses(OpenAIServingChat):
|
|||||||
type="output_text",
|
type="output_text",
|
||||||
text="",
|
text="",
|
||||||
annotations=[],
|
annotations=[],
|
||||||
logprobs=[],
|
logprobs=None,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user