mirror of
https://github.com/kvcache-ai/sglang.git
synced 2026-11-05 01:07:39 +00:00
[PR #93] fix(openai): serialize Responses tool constraints #91
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/sglang#91
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/kvcache-ai/sglang/pull/93
Author: @yyj6666667
Created: 9/9/2026
Status: 🔄 Open
Base:
main← Head:fix/responses-tool-schema-serialization📝 Commits (1)
543926ffix(openai): serialize Responses tool constraints📊 Changes
2 files changed (+22 additions, -1 deletions)
View changed files
📝
python/sglang/srt/entrypoints/openai/serving_responses.py(+12 -0)📝
test/registered/unit/entrypoints/openai/test_dsv4_reasoning_responses.py(+10 -1)📄 Description
Summary
Failure mode
Follow-up to #92. A
/v1/responsesrequest with a function tool and"tool_choice": "required"produced a dict-valuedjson_schema. The Responsesadapter copied that dict directly into
sampling_params; the grammar managerthen called
self.cache.get(key)and crashed the scheduler with:Validation
black --checkon both changed files11 passed, 8 subtests passedprevious_response_id+function_call_outputcontinuation: HTTP 200🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.