-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Allow custom headers for BYOK #3399
Copy link
Copy link
Closed
Labels
area:configurationConfig files, instruction files, settings, and environment variablesConfig files, instruction files, settings, and environment variablesarea:modelsModel selection, availability, switching, rate limits, and model-specific behaviorModel selection, availability, switching, rate limits, and model-specific behavior
Description
Activity
Metadata
Metadata
Assignees
Labels
area:configurationConfig files, instruction files, settings, and environment variablesConfig files, instruction files, settings, and environment variablesarea:modelsModel selection, availability, switching, rate limits, and model-specific behaviorModel selection, availability, switching, rate limits, and model-specific behavior
Describe the feature or problem you'd like to solve
Some LLM servers require specific headers to be sent, allow to set custom http(s) headers
Examples could be:
Proposed solution
Add COPILOT_EXTRA_HEADERS (or COPILOT_CUSTOM_HEADERS) to set one ore multiple headers in the format "Name: Value" (newline for multiple headers)
Filter out headers
Authorizationorx-api-key(or do not allow them)Example prompts or workflows
export COPILOT_EXTRA_HEADERS="X-Tenant-ID: 1234\nX-Proxy-Bypass: true"
Additional context
No response