Skip to content

Variants from models endpoint - #580

Merged
zikajk merged 4 commits into
masterfrom
variants-from-models-endpoint
Sep 1, 2026
Merged

Variants from models endpoint#580
zikajk merged 4 commits into
masterfrom
variants-from-models-endpoint

Conversation

@zikajk

@zikajk zikajk commented Aug 31, 2026

Copy link
Copy Markdown
Member
  • I added a entry in changelog under unreleased section.
  • This is not an AI slop.

@zikajk
zikajk force-pushed the variants-from-models-endpoint branch 3 times, most recently from 4cb3245 to 0fcf578 Compare August 31, 2026 06:21
zikajk added 2 commits August 31, 2026 08:26
When a generic /models entry advertises reasoning efforts and neither
built-in nor user variants exist for the model, build variants from
them. Both the OpenRouter shape (`reasoning.supported_efforts`) and
the Synthetic shape (`reasoning_parameters.efforts`) are accepted.
openai-chat maps each effort to `reasoning_effort`, openai /
openai-responses maps to `reasoning.effort` + `summary auto`. APIs
whose effort payload can't be mapped faithfully (anthropic, bedrock)
build nothing, so users configure variants manually there. User
variants still merge on top and `{}` removes individual variants.
Since 0.157.1 the anthropic adapter enriches provider errors before
delivery (error.type/error.message from the structured body are
parsed into :code and a rewritten :message), but this test still
expected the raw error, so it fails on master. Expect the delivered,
enriched error instead.
@zikajk
zikajk force-pushed the variants-from-models-endpoint branch from 0fcf578 to 29a419b Compare August 31, 2026 06:41
zikajk added 2 commits August 31, 2026 09:06
Commit 98da790 added the /delete-chat native command without
updating this test's expected command lists, so every integration
run fails on both query assertions (already red on master CI).
Add delete-chat with its chat-id argument in the position the
server reports it.
MCP prompts are listed after the server reports running, in a second
tool/serverUpdated notification. The test queried commands right after
the running notification, racing the prompt listing; on slow hosts
(Windows CI) the query could miss the prompt command. Await the
notification that carries prompts before querying.
@zikajk
zikajk merged commit 57ca7f9 into master Sep 1, 2026
9 checks passed
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