Skip to content

fix(example): correct GPT-OSS tool calling for server example#2289

Merged
abetlen merged 1 commit into
mainfrom
fix/gpt-oss-tool-config
Jun 8, 2026
Merged

fix(example): correct GPT-OSS tool calling for server example#2289
abetlen merged 1 commit into
mainfrom
fix/gpt-oss-tool-config

Conversation

@abetlen
Copy link
Copy Markdown
Owner

@abetlen abetlen commented Jun 8, 2026

Fix GPT-OSS example server tool-call parsing and forced tool-choice prompting.

  • Match the GPT-OSS tool-call syntax emitted by the model.
  • Use the same syntax when forced tool_choice opens generation directly in a function call.
  • Add regression coverage for forced, automatic, and streaming tool-call parsing.

@abetlen abetlen force-pushed the fix/gpt-oss-tool-config branch from 416036f to 27ce455 Compare June 8, 2026 09:24
@abetlen abetlen changed the title fix: correct GPT-OSS tool-call config fix(example): correct GPT-OSS tool calling for server example Jun 8, 2026
@abetlen abetlen merged commit e8191f0 into main Jun 8, 2026
14 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant