mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4839] [Engine] API fields accepted and silently not honoured: one list to pick from, most with no known client #2221
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#2221
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 @gdevenyi on GitHub (Oct 31, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4839
Area
[Engine] (speed, kernels, models, the server and API)
Desktop app, Terminal or source?
Source (START-HERE.bat, setup.sh or a build)
A source checkout with the mock engine. No model and no GPU were used.
What happened
The API server accepts these request fields, returns a success, and does not do what the field asks. A few routes at the end have a similar gap. This is one report so that you can pick from it, instead of many small issues or PRs.
Most rows have no known client behind them, and that may be reason enough to leave them. I am not asking for all of this, and I will not open a PR for a row unless you ask. "None of these" is a fair answer.
How to read the table.
c62d5e3awith the mock engine. The model's replies are scripted, so this shows what the server does with such a reply. It does not show how often a real model writes one. The Logs below are a fresh run of most rows. The rest, such asallowed_toolson/v1/responsesand what the SDKs raise, are from earlier runs on the same commit.Requests and tool calls
parallel_tool_calls: false, chat and/v1/responses/v1/responsesalso echoesfalse.tool_choice.disable_parallel_tool_use,/v1/messagestool_useblocks come back.tool_choiceof typeallowed_tools, chat and/v1/responsesauto. A tool left out of the list is still in the prompt, and a call to it comes back. Moderequireddoes not force a call.strict: trueon a function tooljson_schema, not tools. #4222 and #4754 touch nearby code; I found no check ofstrictin their diffs.functionsandfunction_call, chatstopwith no call and no error. Arole: functionmessage in history gets a clear 400.assistantmessage)web_search_20250305,bash_20250124and others){"name": "web_search", "description": "", "parameters": {}}. A call comes back as ordinarytool_use.input_schema.tool_result.is_error: truetrueif the tool execution resulted in an error."thinking.display: "omitted"thinking.type: "between_tools"<think>, as withadaptive.top_logprobsandinclude: ["message.output_text.logprobs"],/v1/responseslogprobsis[], while chat returns entries from the same engine./v1/completions.jsonschemais not inrequirements.txtorpackaging/locks/json_schemaanswer of the wrong type gets a 200. An earlier run with jsonschema 4.26 on the path gave the documented 502.docs/DETAILS.md:525says "jsonschemais used when installed" and documents the fallback. It does not say the locks leave it out.Rows where I looked for a client and did not find one
These were checked more closely. In each case the behaviour is real, but I found no reason to send a PR.
tool_choice: "none",/v1/responsesfunction_callcomes back. Chat returns text for the same reply.nonemeans the model will not call any tool and instead generates a message."strata connectsets up, always sendsauto. The client would only get the raw call as text, not a usable answer. The 0.2.2 notes left this route alone because of Codex's compaction, which is a related but different case./v1/messages/count_tokenswithtool_choice: nonetool_choice(from its bundle). Anthropic's text supports today's count, so the docstring could change instead. An over-count cannot cause an overflow.non chatn=3gives one choice.n=0gives a 200.nabove 1. SillyTavern can, by an opt-in setting, and from its source one choice still works, so a 400 would break it. It is also one of many unread fields.createdandowned_byon/v1/modelsNoneand does not raise. The #4100 reporter says a patch without them satisfied Visual Studio.async-openairequires both, but that is from its source; it was not run and no app using it was found. If you want them, a comment on #3500 fits better than a new PR.input_tokens_details.cache_write_tokens,/v1/responsesmodel_validatefails. Codex and openai-agents default it to 0 (from their source). No strict gateway was tested.POST /v1/responses/input_tokensHEADwget --spiderfalls back to GET (ran). Strata's healthcheck and docs use GET. Claude Code ignores the result of its one HEAD. Onlycurl -fIfails. No proxy or uptime monitor was tested. The fix touches about 15 write sites.DELETE /v1/responses/{id}InternalServerError.docs/DETAILS.mdsays delete is "refused with an error that says so"."store": false. A code search found no use in Codex or the Agents SDKs, though that search is weak. If any row here is worth doing, it is this one, because the docs promise it.stream: trueon/v1/images/generationsstreamis only supported for the GPT image models, so nothing requires it here.Not in this list. Two notes on the
/v1/completionsroute in #3332, its streamed usage and array prompts, belong on that PR.What I am asking. Pick any rows you want, and I will send one focused PR per problem. Otherwise, close this.
Smallest steps or command that reproduce it
Needs a Python with the repo's dependencies. It talks only to a local mock server. Save the file in the repo root, then run
PYTHONPATH=. python fields_mock.py. For thejsonschemarow, also rungit grep jsonschema -- requirements.txt packaging/locks, which finds nothing.fields_mock.pyI ran it with the file outside the repo. The image row uses the fake
sd-clifromserve/test_images.py.Reproduction status
Reproduced locally
With the mock engine only. Not reproduced on a real engine or GPU. The notes on what clients send or accept are unconfirmed static analysis, unless a row says "ran".
Strata version
Git commit
c62d5e3a(0.2.9, main).Graphics card, memory and system
None used (mock engine). Linux 7.2.9, x86-64.
Model, size and settings
MockEnginewithByteTokenizerand scripted replies, orLpEnginefromserve/test_logprobs.pyfor the logprobs rows.jsonschemawas not installed.Logs
Written with an AI agent (Claude Code), which also ran the steps above.
🤖 Generated with Claude Code
https://claude.ai/code/session_01W53iURzvDQMjnYemag8uvv