spring-projects / spring-projects/spring-ai

Support for OpenAI Responses API

Closed
#2,962 18 comments 64 reactions 1 assignee View on GitHub

@dimitarproynov is already working on this.

Since Sep 3, 2026.

enhancement openai
Dominant language
Java
Stars
9.5k
Forks
2.9k
Avg merge
1d 10h
Merged PRs (30d)
5

Description

Hi Spring AI team,

First of all, thanks for the amazing work you’ve done on Spring AI so far.

While integrating with OpenAI I noticed that Spring AI currently doesn't provides support for the newly‑released “Responses API” (docs: https://platform.openai.com/docs/api-reference/responses).

OpenAI positions the Responses API as:

  • a more “agentic” primitive that natively supports tool usage (web search, file search, computer use, etc.),
  • built‑in state handling (previous_response_id),

Because of these advantages, OpenAI encourages new users to prefer Responses over Chat Completions (docs: https://platform.openai.com/docs/guides/responses-vs-chat-completions).

Question / feature request

• Is there a plan or roadmap item for adding first‑class Spring AI support for the OpenAI Responses API?
• Is there any early design guidance you could provide (new ResponsesClient, extension of existing ChatClient, etc.)?

I think being able to swap between Chat Completions and Responses through the same Spring AI abstraction would align with the project’s goal of “easy component swapping with minimal code changes.”

Thank you for your time.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.