Skip to content

feat: Support OpenAI Responses API (/v1/responses)#34

Open
shohei81 wants to merge 2 commits intoRichardAtCT:mainfrom
shohei81:feat/responses-api
Open

feat: Support OpenAI Responses API (/v1/responses)#34
shohei81 wants to merge 2 commits intoRichardAtCT:mainfrom
shohei81:feat/responses-api

Conversation

@shohei81
Copy link

Summary

This PR adds basic support for the OpenAI /v1/responses API, including
optional streaming support, to improve compatibility with newer OpenAI-based
tooling.

The implementation is intentionally minimal and scoped to:

  • Mapping /v1/responses requests into the existing Claude execution flow
  • Handling streaming responses in an SSE-compatible manner

This work addresses the feature request discussed in #21.

What’s included

  • /v1/responses endpoint support
  • Streaming responses (SSE-style)
  • No breaking changes to existing endpoints

Testing

  • Automated tests: Existing pytest suite passes successfully

No new tests were added in this PR; the change is covered by existing tests.

Notes

If this direction aligns with the project’s design goals, I’m happy to:

  • Adjust the API surface or naming
  • Reduce or expand the supported response fields
  • Split this work into smaller PRs if preferred

Fixes #21

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.

Support /v1/responses API

1 participant