Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
f5154495
Unverified
Commit
f5154495
authored
Aug 19, 2025
by
Keyang Ru
Committed by
GitHub
Aug 19, 2025
Browse files
Fix gpt-oss response api streaming issue (#9368)
parent
e0ce171d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
python/sglang/srt/entrypoints/context.py
python/sglang/srt/entrypoints/context.py
+2
-0
python/sglang/srt/entrypoints/openai/serving_responses.py
python/sglang/srt/entrypoints/openai/serving_responses.py
+2
-2
No files found.
python/sglang/srt/entrypoints/context.py
View file @
f5154495
...
@@ -107,6 +107,8 @@ class HarmonyContext(ConversationContext):
...
@@ -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
(
...
...
python/sglang/srt/entrypoints/openai/serving_responses.py
View file @
f5154495
...
@@ -944,7 +944,7 @@ class OpenAIServingResponses(OpenAIServingChat):
...
@@ -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):
...
@@ -992,7 +992,7 @@ class OpenAIServingResponses(OpenAIServingChat):
type
=
"output_text"
,
type
=
"output_text"
,
text
=
""
,
text
=
""
,
annotations
=
[],
annotations
=
[],
logprobs
=
[]
,
logprobs
=
None
,
),
),
)
)
)
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment