Skip to content

Allow using Zeta through an arbitrary OpenAI-compatible self-hosted API#49554

Merged
maxbrunsfeld merged 13 commits intomainfrom
open-ai-edit-prediction-provider
Feb 19, 2026
Merged

Allow using Zeta through an arbitrary OpenAI-compatible self-hosted API#49554
maxbrunsfeld merged 13 commits intomainfrom
open-ai-edit-prediction-provider

Conversation

@maxbrunsfeld
Copy link
Copy Markdown
Collaborator

@maxbrunsfeld maxbrunsfeld commented Feb 19, 2026

Closes #49346

Release Notes:

  • Added the ability to use a self-hosted OpenAI-compatible server for edit predictions.
@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label Feb 19, 2026
@zed-community-bot zed-community-bot Bot added the staff Pull requests authored by a current member of Zed staff label Feb 19, 2026
@maxbrunsfeld maxbrunsfeld marked this pull request as ready for review February 19, 2026 19:57
Co-authored-by: Ben Kunkle <ben@zed.dev>
@maxbrunsfeld maxbrunsfeld force-pushed the open-ai-edit-prediction-provider branch from 269833a to bf0e63d Compare February 19, 2026 19:58
@maxbrunsfeld maxbrunsfeld enabled auto-merge (squash) February 19, 2026 19:59
Co-authored-by: Ben Kunkle <ben@zed.dev>
@maxbrunsfeld maxbrunsfeld enabled auto-merge (squash) February 19, 2026 20:07
@maxbrunsfeld maxbrunsfeld merged commit 62af5b8 into main Feb 19, 2026
28 checks passed
@maxbrunsfeld maxbrunsfeld deleted the open-ai-edit-prediction-provider branch February 19, 2026 20:18
github-actions Bot added a commit that referenced this pull request Feb 19, 2026
Allow using Zeta through an arbitrary OpenAI-compatible self-hosted API

Auto-generated documentation suggestions for review at next preview release.
morgankrey added a commit that referenced this pull request Feb 25, 2026
Auto-applied queued documentation suggestions from:
- PR #48908
- PR #48909
- PR #48910
- PR #48912
- PR #48930
- PR #44794
- PR #48763
- PR #45073
- PR #48495
- PR #49374
- PR #49139
- PR #48780
- PR #48619
- PR #48978
- PR #48962
- PR #48988
- PR #47860
- PR #49015
- PR #47095
- PR #47475
- PR #48542
- PR #46766
- PR #47754
- PR #48807
- PR #44506
- PR #49051
- PR #49069
- PR #48842
- PR #48851
- PR #48736
- PR #47673
- PR #49094
- PR #49098
- PR #49622
- PR #49554
- PR #49710
- PR #49716
- PR #49732
- PR #49788
- PR #49876
- PR #49902
- PR #49910
- PR #49390
- PR #50027

Generated with script/docs-suggest-publish for human review in draft PR.
morgankrey added a commit that referenced this pull request Feb 25, 2026
Auto-applied documentation from:
- PR #47673: Bedrock image support
- PR #49098: Agent max tokens error messaging
- PR #49622: Gemini 3.1 Pro model
- PR #49554: OpenAI-compatible edit prediction
- PR #49710: Git diff review button
- PR #49732: Subagent tool updates
- PR #49788: ETW profiling on Windows

Skipped (no target file/self-explanatory):
- PR #49094: Add project to workspace button
morgankrey added a commit that referenced this pull request Feb 25, 2026
Auto-applied queued documentation suggestions from:
- PR #48908
- PR #48909
- PR #48910
- PR #48912
- PR #48930
- PR #44794
- PR #48763
- PR #45073
- PR #48495
- PR #49374
- PR #49139
- PR #48780
- PR #48619
- PR #48978
- PR #48962
- PR #48988
- PR #47860
- PR #49015
- PR #47095
- PR #47475
- PR #48542
- PR #46766
- PR #47754
- PR #48807
- PR #44506
- PR #49051
- PR #49069
- PR #48842
- PR #48851
- PR #48736
- PR #47673
- PR #49094
- PR #49098
- PR #49622
- PR #49554
- PR #49710
- PR #49716
- PR #49732
- PR #49788
- PR #49876
- PR #49902
- PR #49910
- PR #49390
- PR #50027

Generated with script/docs-suggest-publish for human review in draft PR.
morgankrey added a commit that referenced this pull request Feb 25, 2026
Auto-applied documentation from:
- PR #47673: Bedrock image support
- PR #49098: Agent max tokens error messaging
- PR #49622: Gemini 3.1 Pro model
- PR #49554: OpenAI-compatible edit prediction
- PR #49710: Git diff review button
- PR #49732: Subagent tool updates
- PR #49788: ETW profiling on Windows

Skipped (no target file/self-explanatory):
- PR #49094: Add project to workspace button
maxbrunsfeld added a commit that referenced this pull request Feb 27, 2026
…PI (#49554)

Release Notes:

- Added the ability to use a self-hosted OpenAI-compatible server for
edit predictions.

---------

Co-authored-by: Ben Kunkle <ben@zed.dev>
Co-authored-by: Zed Zippy <234243425+zed-zippy[bot]@users.noreply.github.com>
@Muzosh
Copy link
Copy Markdown

Muzosh commented Feb 27, 2026

@maxbrunsfeld Hello Max. Is there a way to set an API key for our OpenAI-compatible servers?

@saleh-mir
Copy link
Copy Markdown

Any example usage? 'cause when I set it in the settings from the UI, it doesn't work, but I'm hoping it would work if I set it in the JSON.

@vlabo
Copy link
Copy Markdown

vlabo commented Apr 23, 2026

For anyone else trying this out. This is what worked for me:
In Settings -> Edit Prediction -> bottom provider:
Set the api key
Set the url ending with /v1/completions (eg http://localhost:1234/v1/completions)
Prompt format, Infer did not work for me. Im using qwen model so I selected qwen as the format.

The json:

  "edit_predictions": {
    "mode": "subtle",
    "open_ai_compatible_api": {
      "model": "qwen-3.5",
      "prompt_format": "qwen",
      "max_output_tokens": 200,
      "api_url": "http://localhost:1234/v1/completions",
    },
    "provider": "open_ai_compatible_api",
  },

I guess you still need to set the api key in the settings if not local.

@maxbrunsfeld
Copy link
Copy Markdown
Collaborator Author

@Muzosh Yes, you can set the API key in the settings UI. Navigate to AI > Edit Predictions > Configure Providers

Screenshot 2026-04-23 at 3 12 44 PM
@sunyitao
Copy link
Copy Markdown

Invalid on macOS, even with various URL settings.

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 staff Pull requests authored by a current member of Zed staff

6 participants