feat(runtime): add openai-responses provider and Responses API routing#248
Closed
mxyhi wants to merge 1 commit intoRightNow-AI:mainfrom
Closed
feat(runtime): add openai-responses provider and Responses API routing#248mxyhi wants to merge 1 commit intoRightNow-AI:mainfrom
mxyhi wants to merge 1 commit intoRightNow-AI:mainfrom
Conversation
egargale
pushed a commit
to egargale/openfang
that referenced
this pull request
Mar 5, 2026
…ping-indicator feat(channel): add typing indicator for Discord
This was referenced Mar 13, 2026
Member
|
Good feature — OpenAI Responses API for o-series reasoning models. Has merge conflicts. Please rebase onto main. |
Author
Member
|
@mxyhi saw the rebased #628. The core issue is the request schema doesn't match OpenAI's actual Responses API format. The ResponsesRequest struct uses fields (instructions, input) that the real endpoint doesn't accept, and build_responses_input() converts messages to plain text instead of the structured JSON the API expects. Please verify the schema against https://platform.openai.com/docs/api-reference/responses and resubmit. The driver architecture (routing based on model name, separate complete_via_responses path) is solid, just needs the real API format. |
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.
Summary
openai-responses/v1/responseswhen model format requires Responses APIopenai-responses/<model>prefixOPENAI_REASONING_EFFORT(low|medium|high|xhigh) and model suffix fallbackImplementation
drivers/mod.rs: registeropenai-responsesand include it in known provider hintsdrivers/openai.rs: add Responses request/response structs and routing logicagent_loop.rs: prependopenai-responses/toapi_modelwhen provider isopenai-responsesTests
cargo check -p openfang-runtimecargo test -p openfang-runtime drivers::openai::tests:: -- --nocapturecargo test -p openfang-runtime test_known_providers_list -- --nocapture