Skip to content

feat(codex): support Fable 5.2 and configurable Claude model mappings - #211

Closed
muzeye wants to merge 1 commit into
raine:mainfrom
muzeye:feat/claude-model-overrides
Closed

muzeye wants to merge 1 commit into
raine:mainfrom
muzeye:feat/claude-model-overrides

Conversation

@muzeye

@muzeye muzeye commented Nov 15, 2026

Copy link
Copy Markdown

Claude Code requests using claude-fable-5-2 currently fail model routing, and the existing codex.model setting cannot map different Claude IDs to different Codex models.

This adds an exact-ID modelOverrides configuration and a built-in Fable 5.2 alias. For example, claude-opus-5-5 can resolve to gpt-6.1-sol while Haiku resolves to gpt-6-luna, without changing source code for new Claude IDs.

  • Explicit mappings select Codex before alias/session routing and take precedence over the global Codex model override.
  • Targets retain existing allowlist/catalog validation and supported service-tier suffix handling. Empty or unsupported targets return HTTP 400; mappings do not resolve recursively and do not support wildcards.
  • Messages, Chat Completions, and native Responses apply the mappings. Native Responses also normalizes the existing [1m] suffix.
  • Unmapped requests retain existing model selection behavior.

The new claude-fable-5-2 built-in alias targets gpt-6-astra. Existing fable and claude-fable-5 aliases remain mapped to gpt-6-sol.

Validation on macOS ARM64 with Rust 1.100:

  • Full test suite: 1,174 passed, 0 failed, 0 ignored.
  • Process-level regression coverage for exact mappings, future catalog targets, Kimi default routing, global override precedence, tier/lane handling, and rejected invalid targets.
  • cargo fmt --check and cargo clippy --locked --all-targets -- -D warnings passed. Cargo reports two existing unused-dependency manifest warnings (thiserror, tracing-subscriber).
  • cargo build --locked --release --target aarch64-apple-darwin passed.
  • Claude Code 2.1.325 live checks succeeded for all four documented mappings, including a Fable Read-tool round trip.

@muzeye muzeye closed this Nov 15, 2026
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.

1 participant