mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #5460] [Engine] GET /v1/models/{model_id} (OpenAI model retrieve) is still missing in 0.2.11 - blocks Visual Studio 2026 BYOK custom models #3260
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#3260
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tengdahuang on GitHub (Nov 7, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5460
Follows https://github.com/Niko1221/Strata/issues/4100 — same request; @pessimism already attached a working patch there (
0001-single-model-endpoint.patch). #4100 was taken by the old-issue sweep, and the/reopencheck only accepts the original author or a maintainer (ignored /reopen from tengdahuang), so this is a fresh report with a re-test on the current release. My evidence comment from #4100: https://github.com/Niko1221/Strata/issues/4100#issuecomment-6703739213Area
Engine (the OpenAI-compatible API server).
Desktop app, Terminal or source?
From source (
gitclone ofmain, started viarun-<model>.bat→serve/server.py).What happened
serve/server.pyanswersGET /v1/modelsandGET /models, but anything below them —GET /v1/models/{model_id}— falls through to the generic 404. That is the OpenAI model-retrieve endpoint, and it is the one gate that keeps an otherwise perfectly working local model from being addable in Visual Studio 2026's BYOK custom-OpenAI provider (18.10 preview): its "Add model" flow probesGET {base}/v1/models/{model id}before accepting a model, and a 404 there surfaces to the user as "the model is unavailable or the model ID is invalid". Chat, tool calls and vision on the very same base URL work fine — only the validation probe fails, which is what makes this a dead end that is invisible from Strata's side.The same VS dialog accepts Ollama and LM Studio on the same port, because both implement the retrieve endpoint: Ollama since ollama/ollama#5007 (
GET /v1/models/:model, mapped to/api/show); LM Studio registersGET /v1/models/:model(*)(verified against its shipped server bundle, and live-tested on this machine). Another project hit exactly this probe and fixed it server-side: Soju06/codex-lb#2038.Smallest steps or command that reproduce it
GUI path: Chat → Model picker → Manage models → Add custom model → OpenAI → Base URL
http://127.0.0.1:11434/v1+ the exact listed model id → the error above.Reproduction status
Always (every attempt; after the route was added locally, the same dialog succeeds — see "Verified" below).
Strata version
0.2.11 (build 0.1.57), from source:
serve/server.py@54828c7e(main, 2026-11-06).Graphics card, memory and system
2x RTX 3090 24 GB, 128 GB RAM, Windows 11.
Model, size and settings
Qwen3.8-Flash-Next (abliterated GSQ) IQ3_S,
--max-context 262144, pictures on (/healthsaysimages: true), no API key, bound to 127.0.0.1:11434.Logs
Proposed behavior
This is what @pessimism's patch in #4100 does, so treat this as a +1 with a fresh 0.2.11 test: return exactly the item
GET /v1/modelsemits for that id — the list branch already builds entries for aliases and for the image model — and answer unknown ids with the OpenAI-shaped 404 ("code": "model_not_found") so a client can tell "unknown model" from "server down". Percent-decode the id: OpenAI-style ids may contain slashes and dots, which is why LM Studio's route is:model(*).Verified
A 17-line addition in
make_handler'sdo_GET(serve/server.py @54828c7e) that reuses the list branch's owndata:With that route, VS 2026 adds the model and chats through it normally (confirmed today).
@github-actions[bot] commented on GitHub (Nov 7, 2026):
Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:
Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment
/reopen.Details: CONTRIBUTING.md
@github-actions[bot] commented on GitHub (Nov 7, 2026):
Thanks, this follows the format now.