mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #571] [CLOSED] Feat/responses api 451 #2700
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#2700
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?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/571
Author: @CC-David-CC
Created: 10/3/2026
Status: ❌ Closed
Base:
main← Head:feat/responses-api-451📝 Commits (4)
db8b0f7serve: add an opt-in Responses API adapterc216feadocs: clarify branch selection, activation and public evidenceccbb062docs: record Responses checks against upstream 0.1.37bfd7751Merge upstream main and preserve Responses browser protections📊 Changes
13 files changed (+2398 additions, -5 deletions)
View changed files
📝
.gitignore(+1 -0)📝
README.md(+10 -0)📝
docs/DETAILS.md(+7 -0)➕
docs/RESPONSES.md(+262 -0)➕
docs/benchmarks/2026-10-02-responses-cuda.json(+107 -0)➕
docs/benchmarks/2026-10-03-responses-merge-check.json(+91 -0)➕
docs/benchmarks/2026-10-03-responses-upstream-0138.json(+97 -0)➕
serve/response_store.py(+96 -0)➕
serve/responses.py(+771 -0)📝
serve/server.py(+166 -2)➕
serve/test_responses.py(+785 -0)📝
serve/web/monitor.html(+1 -1)📝
serve/web/monitor.js(+4 -2)📄 Description
Adds the standard
/v1/responsesinterface for #451, using the existing Strata service directly. Enable it once at startup with--experimental-responsesor top-level"experimental_responses": true; it is disabled by default.A small controller owns response records, typed output items and lifecycle transitions. JSON and SSE are views of the same execution, retaining the existing engine serialization and cancellation/draining. The monitor observes those transitions.
previous_response_idcontinuations.text.formatvalidation, existing authentication/CORS, atomic retained records, deletion coordination and restart recovery.Unsupported parameters fail explicitly. Background execution/cancel endpoint, image input, reasoning representations, hosted tools, compaction and WebSockets are outside this patch. Strict schemas require
jsonschema; completion is validated, without claiming grammar-constrained decoding.Validation
Merged upstream 0.1.38 (
99f3dbd), preserving the Host checks on all methods and the browser-Origin check before Responses POST dispatch. Two new HTTP regressions cover those protections on Responses routes.All eight serving/security modules passed: 231 passed, 5 tokenizer-fixture skips, including all 41 Responses, 118 server, and 21 security tests. The OpenAI SDK contract check passed.
Upstream sync and test outcomes
The published native CUDA check passed all 10 integration groups on an RTX 4090 with Coder IQ1_M, 4,096-token context and the original 0.1.34 base. That result is not a native-GPU test of 0.1.38.
Enable and use Responses ? Native evidence and source hashes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.