Skip to content

feat(web): custom models live behind a menu on each provider row - #255

Merged
AadiJo merged 5 commits into
mainfrom
provider-custom-models
Nov 15, 2026
Merged

AadiJo merged 5 commits into
mainfrom
provider-custom-models

Conversation

@AadiJo

@AadiJo AadiJo commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Some gateways serve models they don't list, so #253 can't put them in the picker. Cadsense already reads a per-provider customModels list, but the only way to edit it was hand-editing settings.json.

Each provider row in Settings > Providers now has a quiet "⋯" menu with "Custom models…". It opens a small dialog for that provider: saved names show as removable chips, and a name field adds new ones. Each change saves right away into providerInstances.<id>.config.customModels, which the server and the picker already read. A name or alias the provider already lists is refused, and the existing 256-character and 32-model limits apply.

Builds on #253 and #256. Removing a custom model relies on #253's model list change, and edits made before an earlier save is answered rely on #256.

Provider row menu Dialog Picker after adding

Proof: the new apps/server/scripts/custom-models-e2e.ts runs the dev stack against a real Ollama through a proxy that hides the gateway's model list. Adding a model saves it and puts it in the Claude picker, a listed model and its alias are refused, a turn on the custom model reaches the gateway, and removing it takes it out again. With the server's replies held back, two removals in a row both stick, and add, close, reopen, add keeps both names. Web typecheck, vp check and the web suite (1900 tests) pass.

Reviewed with sol-loop: 7 rounds with gpt-6.1-sol on high. Sol verdict: approved

@vercel

vercel Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
cadsense Skipped Skipped Nov 15, 2026 4:45am UTC

@AadiJo
AadiJo force-pushed the provider-custom-models branch from 5c5fe63 to ac2c361 Compare November 12, 2026 22:02
@AadiJo
AadiJo force-pushed the provider-custom-models branch from 3bb996d to 402c809 Compare November 13, 2026 01:10
@AadiJo
AadiJo force-pushed the provider-custom-models branch from 402c809 to e0bd1ad Compare November 13, 2026 05:32
@AadiJo
AadiJo changed the base branch from check-ollama-model-picker to optimistic-settings-saves November 13, 2026 05:32
@AadiJo
AadiJo force-pushed the optimistic-settings-saves branch from ff3d160 to e345095 Compare November 13, 2026 20:58
@AadiJo
AadiJo force-pushed the provider-custom-models branch from e0bd1ad to 0ff6650 Compare November 13, 2026 20:59
@AadiJo
AadiJo force-pushed the optimistic-settings-saves branch from e345095 to 1022285 Compare November 15, 2026 04:43
@AadiJo
AadiJo changed the base branch from optimistic-settings-saves to main November 15, 2026 04:45
@AadiJo
AadiJo force-pushed the provider-custom-models branch from 0ff6650 to 9ddaf94 Compare November 15, 2026 04:45
@AadiJo
AadiJo merged commit f5b90fe into main Nov 15, 2026
12 checks passed
@AadiJo
AadiJo deleted the provider-custom-models branch November 26, 2026 19:52

This branch was previously deployed

1 inactive deployment
Preview — 9ddaf94e Deployed Nov 15, 2026 by vercel[bot]
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