Skip to content

fix: wire custom model providers into the server, and lead the catalog with them - #1446

Open
jgatlit wants to merge 1 commit into
yc-software:mainfrom
jgatlit:fix/wire-custom-model-providers
Open

jgatlit wants to merge 1 commit into
yc-software:mainfrom
jgatlit:fix/wire-custom-model-providers

Conversation

@jgatlit

@jgatlit jgatlit commented Sep 19, 2026

Copy link
Copy Markdown

The custom-provider store is built and returned by buildApp, but src/index.ts enumerates server deps explicitly and never passed it through, so every /v1/admin/custom-providers route hit its if (!ctx.deps.customProviders) return 404 guard — the feature was unreachable in a running core. Verified live: 404 -> 200 after the two-line fix.\n\nAlso orders admin-registered custom models ahead of built-ins in the catalog, since picker order follows catalog order and an operator registers a provider precisely because those models are the ones they want reached. Built-in ids still shadow a colliding custom id at resolution, so this changes ordering only.\n\ntsc --noEmit clean; model-registry, pi-models and webui-model-allowlist suites pass (23/23).

An operator registers an overlay/custom/gateway provider precisely because those models are the ones they want reached, and picker order follows catalog order, so models an admin added should not sit below ~230 built-ins. Built-in ids still shadow a colliding custom id at resolution, so this changes ordering only.
@jgatlit
jgatlit force-pushed the fix/wire-custom-model-providers branch from 010408d to 15685c1 Compare September 19, 2026 09:52
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