ZIm/crates/language_models/src
Umesh Yadav 3f4098e87b
open_ai: Make OpenAI error message generic (#33383)
Context: In this PR: https://github.com/zed-industries/zed/pull/33362,
we started to use underlying open_ai crate for making api calls for
vercel as well. Now whenever we get the error we get something like the
below. Where on part of the error mentions OpenAI but the rest of the
error returns the actual error from provider. This PR tries to make the
error generic for now so that people don't get confused seeing OpenAI in
their v0 integration.

```
Error interacting with language model
Failed to connect to OpenAI API: 403 Forbidden {"success":false,"error":"Premium or Team plan required to access the v0 API: https://v0.dev/chat/settings/billing"}
```

Release Notes:

- N/A
2025-06-28 14:38:27 +02:00
..
provider open_ai: Make OpenAI error message generic (#33383) 2025-06-28 14:38:27 +02:00
ui agent: Fix text wrapping in the provider set up list items (#33063) 2025-06-19 18:17:56 -03:00
language_models.rs settings: Remove version fields (#33372) 2025-06-25 19:05:29 +02:00
provider.rs Add support for Vercel as a language model provider (#33292) 2025-06-24 11:02:06 -03:00
settings.rs settings: Remove version fields (#33372) 2025-06-25 19:05:29 +02:00
ui.rs assistant: Refine settings view's instruction visuals (#25812) 2025-02-28 12:06:47 -03:00