# open_ai: Use responses API for all models \(\#54910\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/83cc2ec054b692a33218129a9ada31d6501cd879)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 83cc2ec054b692a33218129a9ada31d6501cd879

Requested commit: 83cc2ec054b692a33218129a9ada31d6501cd879

Commit: 83cc2ec054b692a33218129a9ada31d6501cd879

Tree: dff450db7376acb5b8c117b0631ad653d8febe1e

Author: Bennet Bo Fenner

Committer: GitHub

## Message

```
open_ai: Use responses API for all models (#54910)

From the
[docs](https://developers.openai.com/api/docs/guides/migrate-to-responses#responses-benefits):

> Better performance: Using reasoning models, like GPT-5, with Responses
will result in better model intelligence when compared to Chat
Completions. Our internal evals reveal a 3% improvement in SWE-bench
with same prompt and setup.
Agentic by default: The Responses API is an agentic loop, allowing the
model to call multiple tools, like web_search, image_generation,
file_search, code_interpreter, remote MCP servers, as well as your own
custom functions, within the span of one API request.
Lower costs: Results in lower costs due to improved cache utilization
(40% to 80% improvement when compared to Chat Completions in internal
tests).
Stateful context: Use store: true to maintain state from turn to turn,
preserving reasoning and tool context from turn-to-turn.
Flexible inputs: Pass a string with input or a list of messages; use
instructions for system-level guidance.
Encrypted reasoning: Opt-out of statefulness while still benefiting from
advanced reasoning.
Future-proof: Future-proofed for upcoming models.

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [ ] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Closes #ISSUE

Release Notes:

- Always use Responses API for OpenAI models
```

## Parents

- [219ea086f2b4dd058651e484b17f555c1adb4c34](https://git.cafe/gitcafe/zed/commit/219ea086f2b4dd058651e484b17f555c1adb4c34?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/83cc2ec054b692a33218129a9ada31d6501cd879?format=markdown)
