feat(models): add provider model and effort aliases#66
Open
saxyguy81 wants to merge 1 commit intoCaddyGlow:mainfrom
Open
feat(models): add provider model and effort aliases#66saxyguy81 wants to merge 1 commit intoCaddyGlow:mainfrom
saxyguy81 wants to merge 1 commit intoCaddyGlow:mainfrom
Conversation
Author
|
Coordination note for reviewers: This PR is intentionally parallel to #64 and #65.
There is no intended dependency between these PRs. They can be reviewed and merged independently; if one lands first, I will rebase the others only if GitHub reports a conflict. |
This was referenced May 10, 2026
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
gpt-5.5,gpt-5.5-*,gpt-5.4, and explicit Codex model mappings.xhigh/maxreasoning efforts in OpenAI-compatible request models, map Responses reasoning effort into Anthropic thinking budgets, and apply Codex model-alias effort defaults.inputpayloads, clampmaxtoxhighbefore Codex backend dispatch, preserve detected Codex CLI version in fallback headers, and allowx-api-keyas a shared-secret header for compatible clients.This is intentionally parallel to #64 and #65. It does not depend on Anthropic tool-history compaction or the Responses
fc_*item-id fix.For 1M Claude aliases, this PR exposes aliases and token limits while relying on the existing Anthropic beta-header merge behavior to preserve client- or CLI-provided long-context beta tags. It does not force long-context beta headers for every account/model combination.
Validation
./Taskfile checkuv run pytest tests/unit/auth/test_auth.py tests/unit/llms/formatters/test_openai_to_anthropic_helpers.py tests/unit/llms/formatters/test_openai_to_openai_reasoning.py tests/plugins/codex/unit/test_adapter.py tests/unit/plugins/test_codex_detection.py tests/unit/utils/test_model_mapper.py tests/plugins/max_tokens/test_service.py tests/plugins/claude_api/integration/test_claude_api_basic.py -q- 115 passeduv run pytest tests/unit tests/plugins/codex/unit/test_adapter.py tests/plugins/max_tokens/test_service.py tests/plugins/claude_api/integration/test_claude_api_basic.py -q- 671 passedgit diff --check