feat: add fallback for unsupported model versions (#5544)#5549
Open
taneja-garvit wants to merge 1 commit intoHelicone:mainfrom
Open
feat: add fallback for unsupported model versions (#5544)#5549taneja-garvit wants to merge 1 commit intoHelicone:mainfrom
taneja-garvit wants to merge 1 commit intoHelicone:mainfrom
Conversation
Previously, the AI Gateway would return 500 errors when encountering unknown model versions not in the registry. This created friction for users trying new model versions. Changes: - Allow unknown models with explicit providers to use passthrough - Add logging for passthrough attempts with unknown models - Add tests for unknown model handling - Create documentation for testing unknown models When a provider is specified (e.g., gpt-5-turbo/openai), the gateway now attempts to proxy the request to the target API even if the model is not in Helicone's registry. This allows users to use new model versions without waiting for registry updates. Behavior: - Unknown model WITHOUT provider: Returns helpful error (unchanged) - Unknown model WITH provider: Proxies to provider (NEW) - Known models: Work exactly as before (no regression) Closes Helicone#5544
|
@taneja-garvit is attempting to deploy a commit to the Helicone Team on Vercel. A member of the Team first needs to authorize it. |
Contributor
There was a problem hiding this comment.
Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.
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.
Previously, the AI Gateway would return 500 errors when encountering unknown model versions not in the registry. This created friction for users trying new model versions.
Changes:
When a provider is specified (e.g., gpt-5-turbo/openai), the gateway now attempts to proxy the request to the target API even if the model is not in Helicone's registry. This allows users to use new model versions without waiting for registry updates.
Behavior:
Closes #5544