Skip to content

Custom headers for OpenAPI compatible providers - #42817

Closed
aurabindo wants to merge 3 commits into
zed-industries:mainfrom
aurabindo:main
Closed

Custom headers for OpenAPI compatible providers#42817
aurabindo wants to merge 3 commits into
zed-industries:mainfrom
aurabindo:main

Conversation

@aurabindo

Copy link
Copy Markdown
Contributor

Discussion thread I created for the feature: #42663

Release Notes:

  • Add custom header support in settings
  • Create a UI to manipulate custom headers in AI settings

@cla-bot

cla-bot Bot commented Nov 15, 2025

Copy link
Copy Markdown

We require contributors to sign our Contributor License Agreement, and we don't have @aurabindo on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@aurabindo

Copy link
Copy Markdown
Contributor Author

@cla-bot check

@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label Nov 15, 2025
@cla-bot

cla-bot Bot commented Nov 15, 2025

Copy link
Copy Markdown

The cla-bot has been summoned, and re-checked this pull request!

Some enterprise instances dont use the standard "Authorization" header.
Custom headers are required in those cases to enable authentication. So
add them as an option for OpenAI compatible providers.

Signed-off-by: Aurabindo Pillai <mail@aurabindo.in>
ApiEndpointNotFound error does not print the provider name. Print it so
that the error message is  more helpful.

Signed-off-by: Aurabindo Pillai <mail@aurabindo.in>
Enable modifying custom headers in AI settings from the UI

Signed-off-by: Aurabindo Pillai <mail@aurabindo.in>
@bennetbo bennetbo self-assigned this Nov 15, 2025
@SomeoneToIgnore SomeoneToIgnore added the area:ai Related to Agent Panel, Edit Prediction, Copilot, or other AI features label Nov 15, 2025
@bennetbo

Copy link
Copy Markdown
Member

Hey, thanks for working on this. Can you fix the conflicts? Could we match the design of the model card?
image

By that i mean:

  • Card with background for headers
  • Move "Add Header" button to top right instead of bottom

Also i feel like we could drop the labels on the input and just rely on placeholders (Name, Value)

@bennetbo

bennetbo commented Dec 3, 2025

Copy link
Copy Markdown
Member

Would be great to have this, feel free to re-open if you want to continue working on it.

@aurabindo

Copy link
Copy Markdown
Contributor Author

@bennetbo opened a new PR #45673

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ai Related to Agent Panel, Edit Prediction, Copilot, or other AI features cla-signed The user has signed the Contributor License Agreement

Projects

No open projects

Development

Successfully merging this pull request may close these issues.

4 participants