Repository navigation
fix: let the provider decide which chat options a model supports - #8
Merged
Merged
Conversation
The Gateway rejected streaming, tools, parallel tool calls and structured output with 422 unsupported_feature whenever the catalog flag for the model was off, before contacting the provider. Stale flags therefore blocked requests the provider accepts: in the 2026-10-14 production catalog, structured output on minimax/minimax-m2.7 and four private/ models, and parallel tool calls on private/glm-5.3. Chat options now go to the provider unchanged. Endpoint routing, privacy policy, credit checks and the SystemOne no-streaming rule still apply. SupportsStreamForEndpoint is removed; nothing uses it any more. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The Gateway rejected streaming, tools, parallel tool calls and structured output with 422
unsupported_featurewhenever a model's catalog flag was off, before the request reached the provider. A stale flag therefore blocked requests the provider would accept.Chat options now go to the provider unchanged, and the provider decides. Endpoint routing, privacy policy and credit checks still apply, and SystemOne streaming is still rejected. Catalog flags are unchanged and still listed in
/v1/models.PublicModel.SupportsStreamForEndpointis removed; nothing uses it after this change.Compatibility
A client that sends one of these options to a model whose flag is off gets the provider's response instead of a 422.
Tests
mainrejected now reach the provider.🤖 Generated with Claude Code