Skip to content

Conversation

@paulinevos
Copy link
Contributor

@paulinevos paulinevos commented Nov 14, 2025

Q A
Bug fix? no
New feature? yes
Docs? yes (by way of fixing examples)
Issues Fix #796
License MIT

This PR migrates OpenAI from chat completions (deprecated) to the Responses API. I tried to keep the scope small and just support everything already in place as seamlessly as possible. The Responses API does offer some more functionality that we should look into supporting (e.g. MCP tool calling, expanded reasoning functionality), but I found that OOS for this migration.

One thing to note it that the Responses API as of now lacks Audio capabilities ("coming soon", according to the docs), so that example is temporarily disabled and so is the Gpt audio capability for now.

Note: my PRs are best reviewed commit by commit

@carsonbot carsonbot changed the title Migrate OpenAI to Responses API Migrate OpenAI to Responses API Nov 14, 2025
@paulinevos
Copy link
Contributor Author

paulinevos commented Nov 14, 2025

lol, please hold. Forgot to add a whole bunch of tests. Feel free to review functionality in the meantime

@paulinevos paulinevos changed the title Migrate OpenAI to Responses API [WIP] Migrate OpenAI to Responses API Nov 14, 2025
@chr-hertel chr-hertel added Status: Needs Work Platform Issues & PRs about the AI Platform component labels Nov 14, 2025
@carsonbot carsonbot changed the title [WIP] Migrate OpenAI to Responses API [Platform][WIP] Migrate OpenAI to Responses API Nov 14, 2025
@chr-hertel chr-hertel marked this pull request as draft November 14, 2025 23:18
@chr-hertel chr-hertel changed the title [Platform][WIP] Migrate OpenAI to Responses API [Platform] Migrate OpenAI to Responses API Nov 14, 2025
@paulinevos paulinevos marked this pull request as ready for review November 17, 2025 11:59
Since `o1` models are deprecated, and the Responses API no longer
supports `o1`.

See: https://platform.openai.com/docs/deprecations#2025-04-28-o1-preview-and-o1-mini
Since we're migrating to the Responses API (from chat completions), and
that API doesn't support audio yet. It should be added back when it does
("coming soon", apparently) 

See: https://platform.openai.com/docs/guides/migrate-to-responses
As every OpenAI model with vision capabilities also support PDF input,
as per docs:

https://platform.openai.com/docs/guides/pdf-files?api-mode=responses
In order to migrate from chat completions to Responses, which enforces
different data structures
Since we're migration from chat completions to Responses, which has a
differnt data structure for function calls
To migrate from OpenAI's chat completions to Responses, we need to
change incoming messages to the updated data structure
Chat completions is deprecated. Responses is the recommended API to use
now.

See: https://platform.openai.com/docs/guides/migrate-to-responses
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature New feature Platform Issues & PRs about the AI Platform component Status: Needs Review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Platform] Update to use the new Responses API instead of Chat Completions

4 participants