feat(ai): improve models.dev reasoning preset configuration - #2202
Merged
Conversation
- refresh reasoning projections while editing explicit models.dev bindings - warn when the active API format cannot reliably apply catalog presets - add combined provider and model search with ranked multi-keyword matching - streamline custom preset naming and hide internal preset IDs
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
Type and Areas
Type:
Feature / bug fix / UI/UX
Areas:
Rust core, desktop/Tauri, app server, AI adapters, Web UI
Motivation / Impact
Explicit models.dev bindings previously did not refresh their effective reasoning presets while the model configuration was still being edited. Presets unsupported by the active request format were also omitted without explaining why.
This change gives users an up-to-date preview, identifies unavailable presets together with the active API format, and directs users to custom request-body patches for provider-specific fields.
The models.dev binding UI is also easier to use:
anthropic fable 5./,-,_, and.are treated as keyword separators.Verification
cargo test -p bitfun-core-types— passedcargo test -p bitfun-app-server --offline— passedpnpm run type-check:web— passedpnpm --dir src/web-ui run test:run src/infrastructure/config/components/ReasoningPresetEditor.test.tsx— 16 passedpnpm run i18n:audit— passed with 0 warningspnpm run theme:color-audit:all— passedgit diff --check— passedReviewer Notes
unavailable_presetsis informational only and is never offered as a selectable or default preset.Checklist