fix(cliproxy): keep native Haiku model name routed to Anthropic

Merged
SH
6d ago
+21-5

Problem

Fleet Claude lanes request claude-haiku-5-5, but the OAuth alias configuration renamed the native Claude model to claude-haiku. The full model request could then fall through to the OpenRouter compatibility route, where Claude Code requests are rejected by the provider path.

Change

  • Fork the native Claude Haiku alias so both claude-haiku-5-5 and claude-haiku remain available to the Haiku-only OAuth credential.
  • Keep the existing Haiku family exclusion policy and Anthropic provider-only restriction.
  • Update the service documentation and regression coverage.

Verification

  • shellspec spec/cliproxyapi_spec.sh - 103 examples, 0 failures
  • shellspec spec/llm_update_spec.sh - 114 examples, 0 failures
  • bash scripts/llm-update.sh - generated configs unchanged
  • git diff --check origin/main...HEAD

Summary by cubic

Fixes Claude Haiku routing so requests for the upstream name claude-haiku-5-5 stay on the native Anthropic credential instead of falling through to OpenRouter, which rejects Claude Code requests.

  • The OAuth alias previously renamed the model to claude-haiku, breaking the full name. The alias now forks, so both claude-haiku-5-5 and claude-haiku remain routed to the Haiku-only credential.
  • Preserves the Haiku family exclusion policy and the Anthropic provider-only restriction; updates the service docs and regression coverage.