zed/docs/src/ai
Matt Stallone 84017bca89
Add OpenAI Responses API support with chat_completions capability flag (#39989)
Add support for OpenAI's /responses endpoint for models that don't
support /chat/completions API. This enables compatibility with newer
model variants (`gpt-5-codex`, `gpt-5-pro`, `o3-pro`, etc) while
maintaining compatibility with existing configs

Changes:
- Add `supports_chat_completions` flag to model capabilities that
defaults to true for existing behavior
- Implement responses API client with streaming support as per [OpenAI
documentation](https://app.stainless.com/api/spec/documented/openai/openapi.documented.yml).
- Add `ResponseEventMapper` to convert responses events to completion
events for maintainer simplicity
- Update UI to allow toggling `chat_completions` capability
- Add `gpt-5-codex` model

Closes #38858

Release Notes:
- Added support for `gpt-5-codex` model

---------

Co-authored-by: Bennet Bo Fenner <bennet@zed.dev>
2026-01-05 18:15:54 +01:00
..
agent-panel.md docs: Testing automatic documentation updates locally (2025-12-21) (#45503) 2025-12-21 20:31:24 -06:00
agent-settings.md docs: Improve the Inline Assistant content (#41566) 2025-10-30 13:53:31 +00:00
ai-improvement.md Improve collection of edit prediction examples (#46010) 2026-01-04 21:53:02 +00:00
billing.md docs: Update links to account page (#44924) 2025-12-15 22:11:42 +00:00
configuration.md docs: Reorganize introduction (#41387) 2025-10-28 17:39:40 -03:00
edit-prediction.md docs: Fix Edit Prediction docs for Codestral (#45509) 2025-12-22 04:10:26 +00:00
external-agents.md docs: Point to the right URL for Gemini CLI (#43239) 2025-11-21 07:23:43 -05:00
inline-assistant.md docs: Improve the Inline Assistant content (#41566) 2025-10-30 13:53:31 +00:00
llm-providers.md Add OpenAI Responses API support with chat_completions capability flag (#39989) 2026-01-05 18:15:54 +01:00
mcp.md mcp: Fix source property showing up as undefined in settings (#43417) 2025-11-25 16:03:21 +00:00
models.md Opus 4.5 and Gemini 3 to docs (#43424) 2025-11-24 13:38:14 -06:00
overview.md docs: Add section about MCP servers with external agents (#40658) 2025-10-20 09:11:11 -03:00
plans-and-usage.md docs: Update links to account page (#44924) 2025-12-15 22:11:42 +00:00
privacy-and-security.md Introduce worktree trust mechanism (#44887) 2025-12-16 20:34:00 +02:00
rules.md docs: Fix link to Anthropic prompt engineering resource (#45329) 2025-12-19 01:47:40 -03:00
subscription.md Docs updates September (#38796) 2025-09-24 11:10:58 -05:00
text-threads.md docs: Improve content about text threads vs. threads (#43688) 2025-11-27 20:49:05 +00:00
tools.md docs: Update agent tools page (#42271) 2025-11-08 12:54:42 -03:00