fix(catalog): demote bundled Models.dev snapshot (#4188) - #4248
Conversation
…4188) Prefer live Models.dev over the bundled seed and keep hardcoded completion names only for CodeWhale-only / unbundled providers, with tests for precedence and alias dedupe.
|
Claude finished @Hmbown's task in 2m 40s —— View job Review: demote bundled Models.dev snapshot to offline fallback (#4188)
Note: SummaryThis PR is almost entirely doc-comments, Things that check out
Minor observations (non-blocking)
No correctness bugs, no provider/model-safety violations, and no unnecessary duplication found in the diff. Test additions are meaningful (they encode the stated precedence and alias-dedupe invariants rather than just re-asserting existing behavior). |
Summary
models_dev.bundled.json/ ProviderLake docs so the bundled asset is an offline/stale fallback, not competing curated truth after live Models.dev (Fetch and cache live Models.dev catalog into ProviderLake #4187).model_completion_names_for_provider()as a compatibility fallback only for CodeWhale-only / unbundled providers; pickers/inventory/subagents stay lake-backed.openai-codex), and alias-normalized dedupe (moonshotai/moonshot).models_dev_livenetwork-failure test to avoidclippy::await_holding_lockunder-Dwarnings.Closes #4188.
Test plan
cargo fmt --all --checkcargo test -p codewhale-tui --bin codewhale-tui --locked 'provider_lake::'cargo test -p codewhale-tui --bin codewhale-tui --locked 'models_dev_live::'cargo test -p codewhale-config --locked bundled_asset_RUSTFLAGS=-Dwarnings cargo clippy -p codewhale-tui -p codewhale-config --locked --tests(with playbook allows)Made with Cursor