mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4100] [Engine] openapi models endpoint not fully implemented #1791
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#1791
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 @pessimism on GitHub (Oct 25, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4100
when calling /models it correctly returns the full models list. openapi specs that when you go to /models/modelid, it returns details about that model. visual studio professional requires the individual models endpoint to respond to register and use BYOM with openapi
5060ti 16gb, 64gb ram, win11 26h2
PS C:> Invoke-RestMethod -Uri "http://127.0.0.1:8080/v1/models" -Method Get | ConvertTo-Json -Depth 4
{
"object": "list",
"data": [
{
"id": "qwen3.8-flash-next-iq3_xxs",
"object": "model",
"status": {
"value": "loaded"
},
"meta": {
"n_ctx": 128000
},
"architecture": {
"input_modalities": [
"text"
],
"output_modalities": [
"text"
]
}
}
]
}
PS C:> Invoke-RestMethod -Uri "http://127.0.0.1:8080/v1/models/qwen3.8-flash-next-iq3_xxs" -Method Get
Invoke-RestMethod : {"error": {"message": "not found"}}
At line:1 char:1
@github-actions[bot] commented on GitHub (Oct 25, 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 (Oct 25, 2026):
Thanks, this follows the format now.
@pessimism commented on GitHub (Oct 25, 2026):
0001-single-model-endpoint.patch
This was enough to satisfy vs community/pro
@Niko1221 commented on GitHub (Nov 5, 2026):
Thanks for taking the time to report this.
Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.
@tengdahuang commented on GitHub (Nov 7, 2026):
Re-tested on Strata 0.2.11 (build 0.1.57) with a running model, Windows 11, 2x RTX 3090 24 GB, 128 GB RAM: the route is still missing.
This is the only thing blocking Visual Studio 2026's BYOK custom OpenAI provider (18.10 preview): its "Add model" flow probes the OpenAI model-retrieve endpoint before accepting a model, and a 404 there surfaces to the user as "the model is unavailable or the model ID is invalid". Everything else about the endpoint is fine — it is exactly the probe that keeps a working local model from being addable at all.
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), and LM Studio registersGET /v1/models/:model(*)(verified against its shipped server bundle). Another project hit exactly this probe and fixed it server-side: Soju06/codex-lb#2038.Suggested behavior (which is what @pessimism's patch does): 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 owndatamakes VS add the model, and it chats normally through it:@tengdahuang commented on GitHub (Nov 7, 2026):
/reopen