Repository navigation
/v1/models: each model lists what it supports, from the same facts the refusals read - #2157
Merged
Merged
Conversation
ashhart
marked this pull request as ready for review
November 4, 2026 19:59
4 of 6 tasks
ashhart
force-pushed
the
lead/models-capabilities
branch
from
November 5, 2026 17:38
ae054eb to
dfd63d8
Compare
ashhart
added a commit
that referenced
this pull request
Nov 6, 2026
ashhart
force-pushed
the
lead/models-capabilities
branch
from
November 6, 2026 03:37
dfd63d8 to
8195734
Compare
ashhart
added a commit
that referenced
this pull request
Nov 6, 2026
ashhart
force-pushed
the
lead/models-capabilities
branch
from
November 6, 2026 08:36
8195734 to
36466ae
Compare
4 tasks done
4 tasks done
Owner
Author
|
/atc exchange be08bebca2cc32d17b0be2448ad40f57a57684d55baaff16a5f3ef650f9f9e92 |
4 tasks done
ashhart
force-pushed
the
lead/models-capabilities
branch
from
November 6, 2026 21:37
36466ae to
a92328c
Compare
This was referenced Nov 7, 2026
ashhart
force-pushed
the
lead/models-capabilities
branch
from
November 7, 2026 02:19
a92328c to
b250445
Compare
This was referenced Nov 7, 2026
ashhart
added a commit
that referenced
this pull request
Nov 8, 2026
…sed, on main's capability source (#2170) #2170 (its commits c66c50e, d9a6676, e6daa05 and 7d078c1) brought onto main 221aca5 with the two held conflicts resolved: - #2157's one capability source: thinking_switch and thinking_applicable are Info flags and the last two Capability entries, so /v1/models keeps one capabilities object with its fields and order and appends the two; the server sets them once at start-up (the off probe renders through the same refusal as a request) and an idle reload keeps them; the request refusal reads applicability through Info.capability. - main's DeepSeek native path in prompt.zig is kept as is: its encoder has a real switch (the synthetic source names enable_thinking and thinking_mode) and writes <|Assistant|></think> itself, so it is never refused. Tests beyond #2170's: raw completions, a switched template whose off render ends without </think>, DeepSeek off through the OpenAI route, the listing shape and the reload. The 17 /v1/models goldens gain only the two fields and their Content-Length. Part of #2139.
ashhart
added a commit
that referenced
this pull request
Nov 8, 2026
…sed, on main's capability source (#2170) main 221aca5 with the two held conflicts resolved: - #2157's one capability source: thinking_switch and thinking_applicable are Info flags and the last two Capability entries, so /v1/models keeps one capabilities object with its fields and order and appends the two; the server sets them once at start-up (the off probe renders through the same refusal as a request) and an idle reload keeps them; the request refusal reads applicability through Info.capability. - main's DeepSeek native path in prompt.zig is kept as is: its encoder has a real switch (the synthetic source names enable_thinking and thinking_mode) and writes <|Assistant|></think> itself, so it is never refused. Tests beyond #2170's: raw completions, a switched template whose off render ends without </think>, DeepSeek off through the OpenAI route, the listing shape and the reload. The 17 /v1/models goldens gain only the two fields and their Content-Length. Part of #2139.
ashhart
added a commit
that referenced
this pull request
Nov 8, 2026
…sed, on main's capability source (#2170) main 221aca5 with the two held conflicts resolved: - #2157's one capability source: thinking_switch and thinking_applicable are Info flags and the last two Capability entries, so /v1/models keeps one capabilities object with its fields and order and appends the two; the server sets them once at start-up (the off probe renders through the same refusal as a request) and an idle reload keeps them; the request refusal reads applicability through Info.capability. - main's DeepSeek native path in prompt.zig is kept as is: its encoder has a real switch (the synthetic source names enable_thinking and thinking_mode) and writes <|Assistant|></think> itself, so it is never refused. Tests beyond #2170's: raw completions, a switched template whose off render ends without </think>, DeepSeek off through the OpenAI route, the listing shape and the reload. The 17 /v1/models goldens gain only the two fields and their Content-Length. Part of #2139.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #2139.
Clients could only learn what a model supports by trying it and reading a 400. Each
/v1/modelsentry now carries the booleans (logprobs, structures, vision, greedy-only, penalties) from the function the refusals read, so the two can't disagree.Only new fields, and no replies change. A host test fails on main and passes here. No device run.