Skip to content

fix: pass through unrecognized model names on native endpoints (fixes #67)#68

Merged
Oaklight merged 2 commits into
masterfrom
fix/native-anthropic-model-resolution
Mar 7, 2026
Merged

fix: pass through unrecognized model names on native endpoints (fixes #67)#68
Oaklight merged 2 commits into
masterfrom
fix/native-anthropic-model-resolution

Conversation

@Oaklight
Copy link
Copy Markdown
Owner

@Oaklight Oaklight commented Mar 7, 2026

Problem

In v2.8.8, the native-anthropic endpoint's model name resolution incorrectly falls back to the default model (gpt4o) when it encounters an unrecognized model name. This causes requests with valid Anthropic model names (e.g., claude-sonnet-4-20250514) to be silently redirected to a completely different model.

Fix

Added an as_is parameter to resolve_model_name(). When as_is=True, unrecognized model names are passed through as-is instead of falling back to the default model. Both native-anthropic and native-openai endpoints now use this pass-through mode, since they should forward the exact model name the user specified.

Changes

  • src/argoproxy/models.py: Added as_is parameter to resolve_model_name()
  • src/argoproxy/endpoints/native_anthropic.py: Use as_is=True for model resolution
  • src/argoproxy/endpoints/native_openai.py: Use as_is=True for model resolution

Fixes #67

@Oaklight Oaklight merged commit 2d6f949 into master Mar 7, 2026
1 check passed
@Oaklight Oaklight deleted the fix/native-anthropic-model-resolution branch March 7, 2026 06:29
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.

API Error with v2.8.8

1 participant