Repository navigation
feat: register Opus 5.5, Opus 5, Sonnet 5.5, Haiku 5.5, and Fable 5.1 - #14
Open
crxssrazr93 wants to merge 1 commit into
Open
crxssrazr93 wants to merge 1 commit into
crxssrazr93 wants to merge 1 commit into
Conversation
Oh My Pi 18 ships these ids in its pi-ai catalog, but MODEL_IDS_IN_ORDER drops anything it does not name, so the bridge kept exposing the previous generation only. Served windows were measured against the Claude Agent SDK result modelUsage.contextWindow, not advertised metadata: claude-opus-5-5, claude-opus-5 bare 200K / [1m] 1M claude-sonnet-5-5, claude-haiku-5-5 bare 200K / [1m] 1M claude-fable-5-1 bare 200K / [1m] 1M (controls) opus-4-8, sonnet-5, fable-5: bare 200K / [1m] 1M Auto defaults follow the existing policy: 1M for Opus/Sonnet flagships, 200K for Haiku and Fable with a -1m alternate. Lengthy id lists are ordered so the newest model in each family wins partial matching (AskClaude "opus" now resolves to claude-opus-5-5). Claude Code 2.1.280+ is required for claude-opus-5-5 and 2.1.251+ for claude-fable-5-1; document the pathToClaudeCodeExecutable workaround for the older CLI bundled with claude-agent-sdk 0.2.x.
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
|
Bump! |
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
Oh My Pi 18 ships five Claude ids the bridge never registered, because
MODEL_IDS_IN_ORDERdrops any id it doesn't name:claude-opus-5-5claude-opus-5claude-sonnet-5-5claude-haiku-5-5claude-fable-5-1This adds them to
MODEL_IDS_IN_ORDERand all three resolvers(
resolveAutoRuntimeModel,resolveForcedOneMRuntimeModel,resolveForcedTwoHundredKRuntimeModel), newest-first per family so partial matchingresolves short names to the newest model (
AskClaudemodel: "opus"→claude-opus-5-5).How the served context windows were verified
Read from the SDK's own result metadata —
result.modelUsage[model].contextWindowafter aone-turn
query()— on omp 18.13.3 with Claude Code 2.1.312. Not inferred from thecatalog's advertised
contextWindow.[1m]id servedclaude-opus-5-5claude-opus-5claude-sonnet-5-5claude-haiku-5-5claude-fable-5-1claude-opus-4-8claude-sonnet-5claude-fable-5¹ Requires a newer CLI than the one bundled with
@anthropic-ai/claude-agent-sdk@0.2.141(2.1.141):
claude-opus-5-5needs 2.1.280+,claude-fable-5-1needs 2.1.251+. Retestedthrough a 2.1.312 binary (bare 200K,
[1m]1M for both) viaprovider.pathToClaudeCodeExecutable.Auto defaults follow the existing policy: 1M for the Opus/Sonnet flagships, 200K for Haiku
and Fable with a
-1malternate. Haiku 5.5 differs from Haiku 4.5 — it has a working 1Mruntime, so it gets both entries.
Type of change
Checklist
bun run typecheckpassesbun run testpassestests/unit-context-window.mjstests/unit-context-window.mjsfixture now carries the five ids plus assertions for theauto/1M/200K pickers and
claudeCodeModelId; the entry-count test moves from 12 to 22. Theper-model duplicate-window check groups by
parseVariantId(...).baseIdinstead ofstartsWith, sinceclaude-fable-5is a prefix ofclaude-fable-5-1.Notes
claude-mythos-5/claude-mythos-5-1are in the catalog but the CLI answers400 ... may not exist or you may not have accessfor this account, so they areintentionally left out.
blocker, unrelated to these registrations.