Skip to content

Add Claude Opus 5.5 to the AI Gateway and upgrade Flue to 2.2.1 - #48

Merged
matthewp merged 1 commit into
mainfrom
feat/gateway-opus-5-5
Sep 28, 2026
Merged

matthewp merged 1 commit into
mainfrom
feat/gateway-opus-5-5

Conversation

@matthewp

Copy link
Copy Markdown
Contributor

Changes

  • Adds claude-opus-5.5 to Factory's cloudflare-ai-gateway provider. Pi's gateway catalog doesn't list Opus 5.5 yet (models.dev lacks it; pi only backfills the direct Anthropic provider), so anthropic/claude-opus-5-5 — used by withastro/astro for review, triage, and the author persona — failed with Unknown model ID. The entry reuses pi's Anthropic Opus 5.5 metadata (cost, limits, thinking levels) with the gateway's native Anthropic endpoint and compat from its Opus 5 entry, and is skipped once pi's catalog ships it.
  • Upgrades @flue/* to ^2.2.1, which resolves model ids that differ only in version separators. This fixes dashed Claude ids broken by pi 0.87.1's rename (e.g. the RetriageJudge failing on anthropic/claude-sonnet-4-6 → claude-sonnet-4.6); Flue logs a one-time warning suggesting the dotted id.

Testing

  • tests/ai-gateway.test.ts: Opus 5.5 is listed exactly once on the gateway's Anthropic endpoint, and new resolution cases run real config values (anthropic/claude-opus-5-5, anthropic/claude-sonnet-4-6, cloudflare-ai-gateway/claude-opus-4.6) through normalizeModelSpecifier and Flue's resolveModel.

Docs

  • README model examples now use the dotted gateway ids (cloudflare-ai-gateway/claude-opus-4.6) that match the current catalog.

- Pi's cloudflare-ai-gateway catalog doesn't list Claude Opus 5.5 yet, so
  anthropic/claude-opus-5-5 configs failed with "Unknown model ID". Derive a
  claude-opus-5.5 gateway entry from pi's Anthropic metadata, using the
  gateway's native Anthropic endpoint and compat; skipped once pi ships it.
- @flue/*: ^2.2.0 -> ^2.2.1, which resolves model ids that differ only in
  version separators (claude-sonnet-4-6 -> claude-sonnet-4.6).
- README examples use the dotted gateway ids.
@matthewp
matthewp merged commit 32cc321 into main Sep 28, 2026
1 check passed
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