Skip to content

fix(known-provider-models): refresh provider catalog metadata and fallbacks#101

Merged
andrei-hasna merged 1 commit into
mainfrom
fix/catalog-refresh
Jul 3, 2026
Merged

fix(known-provider-models): refresh provider catalog metadata and fallbacks#101
andrei-hasna merged 1 commit into
mainfrom
fix/catalog-refresh

Conversation

@andrei-hasna

Copy link
Copy Markdown
Contributor

Summary

Provider catalog refresh closing todos 0bd8a614, 48b75f1d, cf7e3b63, 8ac5e7a8, 3fb80ba8, 066d32a3 plus the NVIDIA/qwen audit items. All changes preserve the repo's real Hasna-branded model slugs; only genuinely-missing entries were added and incorrect metadata flags fixed. Verified current state first and skipped items already correct (GLM-5.2 and OpenRouter DeepSeek text-only metadata were already landed and left untouched).

Changes

  • DeepSeek (0bd8a614): deepseek-v4-flash/deepseek-v4-pro now advertise supports_reasoning = true (thinking mode). DeepSeek toggles thinking via a provider-specific parameter rather than the OpenAI-style reasoning-effort scale, so no effort presets are wired — the same treatment Anthropic already gets (supports_reasoning true, no_reasoning_levels()). This avoids faking generic effort support. OpenRouter DeepSeek text-only metadata is deliberately left unchanged.
  • Cerebras (48b75f1d): added gemma-4-31b preview fallback + metadata (context 131_072, tools, vision via default modalities, no reasoning presets). gpt-oss-120b stays the default.
  • Qwen (cf7e3b63 / 8ac5e7a8): qwen3.6-flash was orphaned in metadata() but absent from FALLBACK_MODELS; it is now exposed as a selectable fallback. qwen3.7-plus/qwen3.7-max were already present. Default kept at qwen3.5-flash (default-move was out of the narrowed scope and covered by an existing test).
  • Anthropic (3fb80ba8): added claude-sonnet-5 fallback + metadata (1M context, adaptive thinking → reasoning) and corrected the stale "latest Sonnet" wording on claude-sonnet-4-6. claude-fable-5 stays the default.
  • NVIDIA (audit): deepseek-ai/deepseek-v4-flash/-pro had supports_tools = false, an outlier versus the direct DeepSeek and OpenRouter catalogs (both true) and DeepSeek's documented tool-call support; corrected to true.
  • OpenRouter (066d32a3): added anthropic/claude-fable-5, anthropic/claude-opus-4-8, anthropic/claude-sonnet-5 catalog metadata (metadata-only, matching the existing pattern of non-fallback OpenRouter entries). FALLBACK/default and the openrouter/fusion question were left untouched since the source task is tagged blocked/no-auto.

Tests

Added unit tests in known-provider-models/src/lib.rs for each item; updated the Anthropic fallback-ordering test. cargo test -p codex-known-provider-models = 16 passed.

Verification

  • cargo fmt -- --config imports_granularity=Item --check — exit 0
  • cargo build -p codex-known-provider-models -p codex-model-provider-info — ok
  • cargo test -p codex-known-provider-models -p codex-model-provider-info — 16 + 66 passed
  • cargo clippy -p codex-known-provider-models — clean
  • gitleaks staged scan — no leaks

…lbacks

- deepseek: advertise reasoning (thinking mode) for deepseek-v4-flash/pro
  via the supports_reasoning flag, mirroring Anthropic's reasoning-capable
  handling; no OpenAI-style effort presets since DeepSeek uses a
  provider-specific thinking toggle
- cerebras: add gemma-4-31b preview fallback + metadata (vision, no
  reasoning presets), keeping gpt-oss-120b as default
- qwen: surface the orphaned qwen3.6-flash metadata entry in FALLBACK_MODELS
- anthropic: add claude-sonnet-5 fallback + metadata and correct stale
  "latest Sonnet" wording on claude-sonnet-4-6
- nvidia: fix supports_tools for deepseek-v4-flash/pro (outlier vs the
  direct and OpenRouter DeepSeek catalogs, which both allow tools)
- openrouter: add anthropic/claude-{fable-5,opus-4-8,sonnet-5} catalog
  metadata (metadata-only, matching existing non-fallback entries)
- tests: cover each of the above
@andrei-hasna
andrei-hasna merged commit 5faaf4a into main Jul 3, 2026
13 of 25 checks passed
@andrei-hasna
andrei-hasna deleted the fix/catalog-refresh branch July 3, 2026 19:25
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 3, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant