Skip to content

Add Vercel AI gateway provider integration#50207

Merged
rtfeldman merged 11 commits intozed-industries:mainfrom
dancer:josh/vercel-ai-gateway
Feb 26, 2026
Merged

Add Vercel AI gateway provider integration#50207
rtfeldman merged 11 commits intozed-industries:mainfrom
dancer:josh/vercel-ai-gateway

Conversation

@dancer
Copy link
Copy Markdown
Contributor

@dancer dancer commented Feb 26, 2026

Summary

  • add a new ai_gateway language model provider in zed using the openai-compatible chat completions path
  • register ai gateway in provider wiring, settings schema, and default settings
  • add vercel ai gateway icon and provider list entry
  • parse ai gateway model capabilities from tags (tool-use, vision) and supported parameters
  • clean up ai gateway oidc auth failures into a concise actionable error message

Release Notes:

  • Added Vercel AI Gateway as a new LLM provider in Zed.

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Feb 26, 2026
@zed-community-bot zed-community-bot bot added the first contribution the author's first pull request to Zed. NOTE: the label application is automated via github actions label Feb 26, 2026
@dancer dancer marked this pull request as draft February 26, 2026 13:34
@maxdeviant maxdeviant changed the title add vercel ai gateway provider integration Add Vercel AI gateway provider integration Feb 26, 2026
@dancer dancer force-pushed the josh/vercel-ai-gateway branch from 08d1049 to 3f9baf0 Compare February 26, 2026 13:41
@dancer dancer marked this pull request as ready for review February 26, 2026 13:45
@rtfeldman rtfeldman self-requested a review February 26, 2026 16:39
fn clean_error_message(message: &str) -> String {
let lower = message.to_lowercase();

if lower.contains("vercel_oidc_token") && lower.contains("oidc token") {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there anything less brittle we can do for this than checking for the presence of hardcoded strings in the error message? 😅

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

team is working on this currently... so for now is this okay? and i can send a follow-up pr?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i can remove it and just let the default show and we are updating the current default error which is this currently
image
but don't want to confuse users yk?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah follow-up would be great, since it won't affect end user UX for now. 😄

Copy link
Copy Markdown
Contributor

@rtfeldman rtfeldman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dancer Looks good overall! A few minor questions, and it looks like it needs a cargo fmt for CI to pass. 😄

@dancer
Copy link
Copy Markdown
Contributor Author

dancer commented Feb 26, 2026

@rtfeldman should be good to go if your okay with the above and once fixed i can make follow up pr for the error handling lmk if that sounds good

@dancer
Copy link
Copy Markdown
Contributor Author

dancer commented Feb 26, 2026

set fastest to none if that is okay as well just so you know

@rtfeldman rtfeldman merged commit 0859cce into zed-industries:main Feb 26, 2026
27 checks passed
@rtfeldman
Copy link
Copy Markdown
Contributor

Thanks @dancer!

rtfeldman pushed a commit that referenced this pull request Feb 27, 2026
## Summary
- add a new `ai_gateway` language model provider in zed using the
openai-compatible chat completions path
- register ai gateway in provider wiring, settings schema, and default
settings
- add vercel ai gateway icon and provider list entry
- parse ai gateway model capabilities from tags (`tool-use`, `vision`)
and supported parameters
- clean up ai gateway oidc auth failures into a concise actionable error
message

Release Notes:

- Added Vercel AI Gateway as a new LLM provider in Zed.
tahayvr pushed a commit to tahayvr/zed that referenced this pull request Mar 4, 2026
## Summary
- add a new `ai_gateway` language model provider in zed using the
openai-compatible chat completions path
- register ai gateway in provider wiring, settings schema, and default
settings
- add vercel ai gateway icon and provider list entry
- parse ai gateway model capabilities from tags (`tool-use`, `vision`)
and supported parameters
- clean up ai gateway oidc auth failures into a concise actionable error
message

Release Notes:

- Added Vercel AI Gateway as a new LLM provider in Zed.
naaiyy pushed a commit to Glass-HQ/Glass that referenced this pull request Mar 10, 2026
## Summary
- add a new `ai_gateway` language model provider in zed using the
openai-compatible chat completions path
- register ai gateway in provider wiring, settings schema, and default
settings
- add vercel ai gateway icon and provider list entry
- parse ai gateway model capabilities from tags (`tool-use`, `vision`)
and supported parameters
- clean up ai gateway oidc auth failures into a concise actionable error
message

Release Notes:

- Added Vercel AI Gateway as a new LLM provider in Zed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement first contribution the author's first pull request to Zed. NOTE: the label application is automated via github actions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants