# language_models: Support custom HTTP headers for provider requests \(\#55246\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/bb5951b7cac2ff6bc87396308f5283fc17507f41)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: bb5951b7cac2ff6bc87396308f5283fc17507f41

Requested commit: bb5951b7cac2ff6bc87396308f5283fc17507f41

Commit: bb5951b7cac2ff6bc87396308f5283fc17507f41

Tree: 3ae9ce2cdb29199c282272dc1fab41e175d47bb7

Author: Aurabindo Pillai

Committer: GitHub

## Message

```
language_models: Support custom HTTP headers for provider requests (#55246)

Add a `custom_headers` setting to each HTTP-based language model
provider
(Anthropic, Bedrock, DeepSeek, Google, LM Studio, Mistral, Ollama,
OpenAI,
OpenAI-compatible, OpenCode, OpenRouter, Vercel AI Gateway, and xAI) so
users
can attach extra headers to every outgoing request. Headers managed by
Zed
(authentication, content-type, etc.) cannot be overridden and are
skipped with
a warning.

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- Added support for configuring custom HTTP headers on language model
  providers via `language_models.<provider>.custom_headers`.

Signed-off-by: Aurabindo Pillai <mail@aurabindo.in>
```

## Parents

- [4e949a1cc3bad04069bf6438d23569de29a12175](https://git.cafe/gitcafe/zed/commit/4e949a1cc3bad04069bf6438d23569de29a12175?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/bb5951b7cac2ff6bc87396308f5283fc17507f41?format=markdown)
