[GH-ISSUE #451] Support Openai Responses api #210

Closed
opened 2026-11-04 01:40:56 +07:00 by bsakaguchi · 10 comments
Owner

Originally created by @apdogod123321-ops on GitHub (Oct 2, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/451

Originally created by @apdogod123321-ops on GitHub (Oct 2, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/451
Author
Owner

@Niko1221 commented on GitHub (Oct 2, 2026):

Thanks. A stateless /v1/responses (the input items, instructions, tools, reasoning, and the typed streaming events) fits on top of the existing chat-completions path. It is planned after the current fixes. Which client do you need it for (Codex CLI, an SDK, something else)? That decides which parts of the streaming format matter first.

<!-- gh-comment-id:5947590165 --> @Niko1221 commented on GitHub (Oct 2, 2026): Thanks. A stateless `/v1/responses` (the `input` items, `instructions`, tools, reasoning, and the typed streaming events) fits on top of the existing chat-completions path. It is planned after the current fixes. Which client do you need it for (Codex CLI, an SDK, something else)? That decides which parts of the streaming format matter first.
Author
Owner

@StoyanStAtanasov commented on GitHub (Oct 3, 2026):

Codex, Hermes or Pi one of those works only with responses

<!-- gh-comment-id:5963380023 --> @StoyanStAtanasov commented on GitHub (Oct 3, 2026): Codex, Hermes or Pi one of those works only with responses
Author
Owner

@CC-David-CC commented on GitHub (Oct 3, 2026):

https://github.com/CC-David-CC/Strata-a5500/tree/feat/responses-api-451

please give me initial feedback apdogod123321-ops i'm not sure its far enough along to be a draft pull request

working on a different version that starts with support for gbnf.
unless someone expresses interest in this branch it is dead

edit i'm updating this branch in parallel until i get the gbnf working.
the current Codex profile requests unsupported reasoning representations and namespaced tools.
working against the codex v160

so this is an intermediate step. just ignore this entire thing for now.

<!-- gh-comment-id:5963746865 --> @CC-David-CC commented on GitHub (Oct 3, 2026): https://github.com/CC-David-CC/Strata-a5500/tree/feat/responses-api-451 please give me initial feedback apdogod123321-ops i'm not sure its far enough along to be a draft pull request working on a different version that starts with support for gbnf. unless someone expresses interest in this branch it is dead edit i'm updating this branch in parallel until i get the gbnf working. the current Codex profile requests unsupported reasoning representations and namespaced tools. working against the codex v160 so this is an intermediate step. just ignore this entire thing for now.
Author
Owner

@Niko1221 commented on GitHub (Oct 3, 2026):

Thanks, that helps. Codex speaks only the Responses API, so it's the first client we'll test against: its streaming events and tool calls. The same endpoint should then serve Pi and Hermes too. It's planned after 0.1.38, so I'm keeping this open.

<!-- gh-comment-id:5964028732 --> @Niko1221 commented on GitHub (Oct 3, 2026): Thanks, that helps. Codex speaks only the Responses API, so it's the first client we'll test against: its streaming events and tool calls. The same endpoint should then serve Pi and Hermes too. It's planned after 0.1.38, so I'm keeping this open.
Author
Owner

@CC-David-CC commented on GitHub (Oct 3, 2026):

apdogod123321-ops
please check these pull requests out.
https://github.com/Niko1221/Strata/pull/630 // this one is for you - i need your feedback to improve it
https://github.com/Niko1221/Strata/pull/636 // this one is for me - i want feedback in general

<!-- gh-comment-id:5969914801 --> @CC-David-CC commented on GitHub (Oct 3, 2026): apdogod123321-ops please check these pull requests out. https://github.com/Niko1221/Strata/pull/630 // this one is for you - i need your feedback to improve it https://github.com/Niko1221/Strata/pull/636 // this one is for me - i want feedback in general
Author
Owner

@CC-David-CC commented on GitHub (Oct 3, 2026):

working out a few more issues however, apdogod123321-ops
, i think i am almost to your goal Image

edit

sigh i wish just gbnf was good enough but they use json in codex. ew. hold on i'm extending the gbnf branch deeper so it can support json

edit 2

update

Image

no i haven't pushed that live to even mine yet. working on it as fast as possible

<!-- gh-comment-id:5972104075 --> @CC-David-CC commented on GitHub (Oct 3, 2026): working out a few more issues however, apdogod123321-ops , i think i am almost to your goal <img width="2742" height="1992" alt="Image" src="https://github.com/user-attachments/assets/5b630015-62c3-4015-897b-fe47deb84ece" /> edit *sigh* i wish just gbnf was good enough but they use json in codex. ew. hold on i'm extending the gbnf branch deeper so it can support json edit 2 update <img width="2942" height="246" alt="Image" src="https://github.com/user-attachments/assets/c7f4c840-1410-47df-b10d-53f329ef3989" /> no i haven't pushed that live to even mine yet. working on it as fast as possible
Author
Owner

@CC-David-CC commented on GitHub (Oct 3, 2026):

https://github.com/CC-David-CC/Strata-a5500/tree/work/gbnf

apdogod123321-ops,
I am calling this request complete unless you bring up any issues

Image
<!-- gh-comment-id:5974523071 --> @CC-David-CC commented on GitHub (Oct 3, 2026): https://github.com/CC-David-CC/Strata-a5500/tree/work/gbnf apdogod123321-ops, I am calling this request complete unless you bring up any issues <img width="1004" height="1384" alt="Image" src="https://github.com/user-attachments/assets/c615a742-707d-43c2-bfaa-984429a3f565" />
Author
Owner

@apdogod123321-ops commented on GitHub (Oct 4, 2026):

I just know codex wont work with it and I think there are others like me that may want to use it with that and having compatibility with that will help overall.

<!-- gh-comment-id:5976196746 --> @apdogod123321-ops commented on GitHub (Oct 4, 2026): I just know codex wont work with it and I think there are others like me that may want to use it with that and having compatibility with that will help overall.
Author
Owner

@apdogod123321-ops commented on GitHub (Oct 4, 2026):

I will try your solution when I get some time and let you know unless someone else gets to it first

<!-- gh-comment-id:5976200113 --> @apdogod123321-ops commented on GitHub (Oct 4, 2026): I will try your solution when I get some time and let you know unless someone else gets to it first
Author
Owner

@Niko1221 commented on GitHub (Oct 4, 2026):

Fixed in 0.1.39: Strata now has POST /v1/responses, OpenAI's Responses API. It is stateless (the client sends the whole conversation each time, as Codex does with store: false) and runs on the same path as /v1/chat/completions: string or item input, instructions, function tools (also Codex's namespace and custom tools), function_call / function_call_output round trips, reasoning.effort, max_output_tokens, text.format JSON schemas, and the official streaming events. The model's thinking comes back as reasoning items, and when they are sent back the conversation cache is reused.

Tested with Codex CLI 0.160.0 on Q2_0: a plain prompt, and a tool loop where Codex ran shell commands and the model answered from their output. Later turns reused about 96% of the prompt from the cache. The Codex config.toml is in docs/DETAILS.md, under "The Responses API and Codex CLI".

Not supported: previous_response_id and stored responses (nothing is stored), hosted tools such as web search (they are left out), and reasoning summaries (this model writes none; set show_raw_agent_reasoning = true in Codex to see its thinking). Pi and Hermes should work through the same endpoint. If one of them doesn't, please open an issue with the request it sends.

<!-- gh-comment-id:5979962607 --> @Niko1221 commented on GitHub (Oct 4, 2026): Fixed in 0.1.39: Strata now has `POST /v1/responses`, OpenAI's Responses API. It is stateless (the client sends the whole conversation each time, as Codex does with `store: false`) and runs on the same path as `/v1/chat/completions`: string or item `input`, `instructions`, function tools (also Codex's namespace and custom tools), function_call / function_call_output round trips, `reasoning.effort`, `max_output_tokens`, `text.format` JSON schemas, and the official streaming events. The model's thinking comes back as reasoning items, and when they are sent back the conversation cache is reused. Tested with Codex CLI 0.160.0 on Q2_0: a plain prompt, and a tool loop where Codex ran shell commands and the model answered from their output. Later turns reused about 96% of the prompt from the cache. The Codex `config.toml` is in docs/DETAILS.md, under "The Responses API and Codex CLI". Not supported: `previous_response_id` and stored responses (nothing is stored), hosted tools such as web search (they are left out), and reasoning summaries (this model writes none; set `show_raw_agent_reasoning = true` in Codex to see its thinking). Pi and Hermes should work through the same endpoint. If one of them doesn't, please open an issue with the request it sends.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#210
No description provided.