Skip to content

fix(ff-ai): retry models.dev fetch without -reasoning suffix on 404#69

Merged
fdarian merged 2 commits intomainfrom
fix/models-dev-reasoning-suffix
Apr 4, 2026
Merged

fix(ff-ai): retry models.dev fetch without -reasoning suffix on 404#69
fdarian merged 2 commits intomainfrom
fix/models-dev-reasoning-suffix

Conversation

@fdarian
Copy link
Copy Markdown
Owner

@fdarian fdarian commented Apr 4, 2026

Summary

  • Some AI SDK providers (e.g. xAI) use a -reasoning suffix in model IDs (e.g. grok-4-1-fast-reasoning), but models.dev treats reasoning as the default and names the file without the suffix (grok-4-1-fast.toml)
  • When the initial models.dev fetch returns 404, retry with the -reasoning suffix stripped

Test plan

  • Verify grok-4-1-fast-reasoning resolves pricing from grok-4-1-fast.toml
  • Verify models that already have a matching file (with -reasoning in the name) still work on the first try

fdarian added 2 commits April 4, 2026 16:47
Some providers (e.g. xAI) use "-reasoning" suffix in AI SDK model IDs,
but models.dev treats reasoning as the default (no suffix). When the
initial fetch 404s, retry with the suffix stripped.
@fdarian fdarian changed the title fix: retry models.dev fetch without -reasoning suffix on 404 fix(ff-effect): retry models.dev fetch without -reasoning suffix on 404 Apr 4, 2026
@fdarian fdarian changed the title fix(ff-effect): retry models.dev fetch without -reasoning suffix on 404 fix(ff-ai): retry models.dev fetch without -reasoning suffix on 404 Apr 4, 2026
@fdarian fdarian merged commit ca6b0e2 into main Apr 4, 2026
3 checks passed
@fdarian fdarian deleted the fix/models-dev-reasoning-suffix branch April 4, 2026 09:50
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