Skip to content

feat(runtime): add openai-responses provider and Responses API routing#248

Open
mxyhi wants to merge 1 commit intoRightNow-AI:mainfrom
mxyhi:feat/openai-responses-reasoning-effort
Open

feat(runtime): add openai-responses provider and Responses API routing#248
mxyhi wants to merge 1 commit intoRightNow-AI:mainfrom
mxyhi:feat/openai-responses-reasoning-effort

Conversation

@mxyhi
Copy link

@mxyhi mxyhi commented Mar 3, 2026

Summary

  • add a new provider alias: openai-responses
  • route OpenAI driver to /v1/responses when model format requires Responses API
  • allow explicit force format via openai-responses/<model> prefix
  • support OPENAI_REASONING_EFFORT (low|medium|high|xhigh) and model suffix fallback
  • update docs for provider/configuration usage

Implementation

  • drivers/mod.rs: register openai-responses and include it in known provider hints
  • drivers/openai.rs: add Responses request/response structs and routing logic
  • agent_loop.rs: prepend openai-responses/ to api_model when provider is openai-responses

Tests

  • cargo check -p openfang-runtime
  • cargo test -p openfang-runtime drivers::openai::tests:: -- --nocapture
  • cargo test -p openfang-runtime test_known_providers_list -- --nocapture

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