Skip to content

Add default_headers support to LLM configuration#432

Closed
max2ma wants to merge 1 commit intoalgorithmicsuperintelligence:mainfrom
max2ma:main
Closed

Add default_headers support to LLM configuration#432
max2ma wants to merge 1 commit intoalgorithmicsuperintelligence:mainfrom
max2ma:main

Conversation

@max2ma
Copy link

@max2ma max2ma commented Mar 4, 2026

Enable custom HTTP headers in OpenAI-compatible API client to support API gateways that use non-standard authentication. Headers support environment variable resolution via ${VAR} syntax.

Changes:

  • Add default_headers field to LLMModelConfig
  • Resolve environment variables in header values during post-init
  • Pass default_headers to OpenAI client when present
  • Include default_headers in shared config propagation

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

1 similar comment
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Enable custom HTTP headers in OpenAI-compatible API client to support
API gateways that use non-standard authentication. Headers support
environment variable resolution via ${VAR} syntax.

Changes:
- Add default_headers field to LLMModelConfig
- Resolve environment variables in header values during post-init
- Pass default_headers to OpenAI client when present
- Include default_headers in shared config propagation

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants