Add support for Vercel as a language model provider (#33292)

Vercel v0 is an OpenAI-compatible model, so this is mostly a dupe of the
OpenAI provider files with some adaptations for v0, including going
ahead and using the custom endpoint for the API URL field.

Release Notes:

- Added support for Vercel as a language model provider.
This commit is contained in:
Danilo Leal 2025-06-24 11:02:06 -03:00 committed by GitHub
parent 0d70bcb88c
commit 94735aef69
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 1394 additions and 0 deletions

15
Cargo.lock generated
View file

@ -8985,6 +8985,7 @@ dependencies = [
"ui",
"ui_input",
"util",
"vercel",
"workspace-hack",
"zed_llm_client",
]
@ -17424,6 +17425,20 @@ version = "0.2.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426"
[[package]]
name = "vercel"
version = "0.1.0"
dependencies = [
"anyhow",
"futures 0.3.31",
"http_client",
"schemars",
"serde",
"serde_json",
"strum 0.27.1",
"workspace-hack",
]
[[package]]
name = "version-compare"
version = "0.2.0"