Skip to content

Commit 23d83fd

Browse files
committed
Add claude-fable-5 mapping; document cross-repo new-model checklist
1 parent 41c28bd commit 23d83fd

2 files changed

Lines changed: 23 additions & 1 deletion

File tree

docs/CUSTOM_BINARY.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,27 @@ const MODEL_MAP_ANTHROPIC = Dict{String,String}(
153153
After `router-for-me/models` merges your PR, revert the `modelsURLs` change in
154154
`model_updater.go` and rebuild so we're back on the upstream feed.
155155

156+
## Cross-repo checklist (all places to touch on a new release)
157+
158+
Steps 1–6 above make the proxy serve the model. The places below make it
159+
actually usable/visible everywhere else. Search each repo for
160+
`UPDATE ON NEW RELEASE` — every such marker is a spot to revisit.
161+
162+
| # | Repo / file | What to change |
163+
|---|---|---|
164+
| 1 | `awesome/CLIProxyAPI` `internal/registry/models/models.json` | Add the model block (id, display_name, created, thinking levels), then rebuild + restart (steps 2–4). |
165+
| 2 | `OpenRouterCLIProxyAPI.jl` `src/OpenRouterCLIProxyAPI.jl``MODEL_MAP_ANTHROPIC` / `MODEL_MAP_OPENAI` / `MODEL_MAP_GEMINI` | Add `"<native-id>" => "<provider>/<or-id>"`. Without this you get `502: unknown provider for model …`. Move the `# LATEST … UPDATE ON NEW RELEASE` comment to the new flagship. |
166+
| 3 | `OpenRouter.jl` `src/storage.jl``MODEL_ALIASES` | If it's the new provider flagship, repoint the short alias (`"claude"`, `"gpt5"`, …). |
167+
| 4 | `OpenRouter.jl` `scripts/export_models_json.jl` | Re-run it (`julia --project=. scripts/export_models_json.jl`) to refresh `frontend/src/assets/models_data.json`. The OpenRouter list must already carry the model. |
168+
| 5 | `todoforai/packages` `shared-fbe/src/thinkingLevels.ts``THINKING_LEVELS_BY_MODEL` | Add `'<normalized-id>': [...levels]` (normalized = lowercase, dots→dashes, last path segment). Mirror the registry's `thinking.levels`. Without this the UI shows no thinking badges. |
169+
| 6 | `todoforai/frontend` `src/constants/recommendedModels.ts``RECOMMENDED_MODELS` | Add the model if it should appear in the recommended list (place by tier). |
170+
171+
Notes:
172+
- Empty-endpoint models (e.g. OpenRouter `~…-latest` aliases) are dropped by the
173+
export script and won't ship to the frontend — use the concrete pinned id.
174+
- `MODEL_MAP` keys are the proxy's **native** ids (`claude-fable-5`); values are
175+
**OpenRouter-style** ids (`anthropic/claude-fable-5`).
176+
156177
## Rollback
157178

158179
If something goes wrong:

src/OpenRouterCLIProxyAPI.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ const MODEL_MAP_ANTHROPIC = Dict{String,String}(
2222
"claude-haiku-4-5-20251001" => "anthropic/claude-haiku-4.5",
2323
"claude-opus-4-5-20251101" => "anthropic/claude-opus-4.5",
2424
"claude-opus-4-7" => "anthropic/claude-opus-4.7",
25-
"claude-opus-4-8" => "anthropic/claude-opus-4.8", # LATEST Anthropic model - UPDATE ON NEW RELEASE
25+
"claude-opus-4-8" => "anthropic/claude-opus-4.8",
26+
"claude-fable-5" => "anthropic/claude-fable-5", # LATEST Anthropic model - UPDATE ON NEW RELEASE
2627
"claude-opus-4-6" => "anthropic/claude-opus-4.6",
2728
"claude-sonnet-4-6" => "anthropic/claude-sonnet-4.6",
2829
)

0 commit comments

Comments
 (0)