ZIm/crates/language_models/src/provider
Richard Feldman 7d4d8b8398
Add GPT-5 support through OpenAI API (#35822)
(This PR does not add GPT-5 to Zed Pro, but rather adds access if you're
using your own OpenAI API key.)

<img width="772" height="333" alt="Screenshot 2025-08-07 at 2 23 18 PM"
src="https://github.com/user-attachments/assets/42e75082-118a-4737-89b6-a740ae33b169"
/>

---

**NOTE:** If your API key is not through a verified organization, you
may see this error:

<img width="549" height="253" alt="Screenshot 2025-08-07 at 2 04 54 PM"
src="https://github.com/user-attachments/assets/d0b6d739-9c39-4af3-88d7-0c9609b0e6ba"
/>

Even if your org is verified, you still may not have access to GPT-5, in
which case you could see this error:

<img width="543" height="98" alt="Screenshot 2025-08-07 at 2 09 18 PM"
src="https://github.com/user-attachments/assets/e3ed31e3-2a11-4f07-8f3c-5b410fbe4540"
/>

One way to test if you're in this situation is to visit
https://platform.openai.com/chat/edit?models=gpt-5 and see if you get
the same "you don't have access to GPT-5" error on OpenAI's official
playground. It looks like this:

<img width="581" height="196" alt="Screenshot 2025-08-07 at 2 15 25 PM"
src="https://github.com/user-attachments/assets/ea1454ca-3c10-4703-8126-c02cb92a34f2"
/>

Release Notes:

- Added GPT-5, as well as its mini and nano variants. To use this, you
need to have an OpenAI API key configured via the `OPENAI_API_KEY`
environment variable.
2025-08-07 23:35:41 +00:00
..
anthropic.rs agent: Update pieces of copy in the settings view (#35621) 2025-08-05 00:36:43 +00:00
bedrock.rs agent: Update pieces of copy in the settings view (#35621) 2025-08-05 00:36:43 +00:00
cloud.rs Fetch models right after signing in (#35711) 2025-08-06 10:04:07 +00:00
copilot_chat.rs agent: Update pieces of copy in the settings view (#35621) 2025-08-05 00:36:43 +00:00
deepseek.rs agent: Improve error handling and retry for zed-provided models (#33565) 2025-06-30 21:01:32 -06:00
google.rs agent: Update pieces of copy in the settings view (#35621) 2025-08-05 00:36:43 +00:00
lmstudio.rs Revise and clean up some icons (#35582) 2025-08-04 11:58:31 -03:00
mistral.rs agent: Update pieces of copy in the settings view (#35621) 2025-08-05 00:36:43 +00:00
ollama.rs agent: Update pieces of copy in the settings view (#35621) 2025-08-05 00:36:43 +00:00
open_ai.rs Add GPT-5 support through OpenAI API (#35822) 2025-08-07 23:35:41 +00:00
open_ai_compatible.rs agent: Update pieces of copy in the settings view (#35621) 2025-08-05 00:36:43 +00:00
open_router.rs agent: Update pieces of copy in the settings view (#35621) 2025-08-05 00:36:43 +00:00
vercel.rs agent: Improve error handling and retry for zed-provided models (#33565) 2025-06-30 21:01:32 -06:00
x_ai.rs Add xAI language model provider (#33593) 2025-07-15 15:35:50 -04:00