Skip to content

feat: add fallback for unsupported model versions (#5544)#5549

Open
taneja-garvit wants to merge 1 commit intoHelicone:mainfrom
taneja-garvit:feat/fallback-unsupported-model-versions
Open

feat: add fallback for unsupported model versions (#5544)#5549
taneja-garvit wants to merge 1 commit intoHelicone:mainfrom
taneja-garvit:feat/fallback-unsupported-model-versions

Conversation

@taneja-garvit
Copy link

@taneja-garvit taneja-garvit commented Jan 28, 2026

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 #5544

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
@vercel
Copy link

vercel bot commented Jan 28, 2026

@taneja-garvit is attempting to deploy a commit to the Helicone Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

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.

[Feature]: fallback for unsupported model versions

1 participant