Refresh AI/ML chat presets and migrate saved keys
HU
7d ago+170+170+012345678901234567890123456789-27-27-01234567890123456789
Follow-up to #1132 and the request to split the changes.
Changes
- Add nine AI/ML chat presets across OpenAI, Anthropic, Google, and Moonshot. Update the gateway IDs for Claude Sonnet 4.6, Gemini 3.1 Pro, and Kimi K2.5. The gateway catalog currently lists
moonshot/kimi-k3for Chat Completions. - Migrate the dated Sonnet 4.6 key in saved selections and API modes. Register the AI/ML labels in the English source locale.
- Remove the built-in provider’s legacy Completions path declaration. Existing AI/ML presets resolve to Chat Completions.
Validation
npm test(1,125 passed),npm run lint,npm run pretty:check, and production builds for Chromium and Firefox.- Verified each preset ID in the live AI/ML API model catalog under Chat Completions. A Chromium smoke test verified that the saved Sonnet selection migrates and still appears in the picker. An authenticated gateway test was attempted, but inference returned HTTP 403 on the test account.
Rollback
The migration persists the canonical Sonnet key. A build that predates this change only recognizes the dated key in saved selections.
Original implementation in #1132 by @vito-bush and Stan.
Summary by CodeRabbit
- New Features
- Expanded the AI/ML model catalog with new GPT, Claude, Gemini, and Kimi options, and refreshed model labels and descriptions.
- Added a browser message for display in the interface.
- Bug Fixes
- AI/ML chat requests now resolve to the chat-completions endpoint instead of the completions endpoint.
- Existing selections of the dated Claude Sonnet 4.6 model are migrated to its current model name.