eca icon indicating copy to clipboard operation
eca copied to clipboard

Supporting extraHeaders for a provider

Open sonals opened this issue 5 months ago • 2 comments

To upvote this issue, give it a thumbs up. See this list for the most upvoted issues.

Some LLM gateways require extra headers to be passed in the HTTP headers. e.g., Ocp-Apim-Subscription-Key. Current config.json supports extra headers for a model but not for a provider. For these LLM gateways even the model list cannot be queried without support for Ocp-Apim-Subscription-Key in the HTTP header. Following trivial python code shows how the Ocp-Apim-Subscription-Key is used in some LLM gateways.

import requests

url = "https://llm-api.my.com/models"
headers = {"Ocp-Apim-Subscription-Key": "5886856896589656"}
response = requests.get(url, headers)
models = response.json()

The request is to add support for extra headers via the extraHeaders key for provider.

sonals avatar Jul 01 '26 21:07 sonals

Done! available in the next release soon

ericdallo avatar Jul 01 '26 23:07 ericdallo

Thanks! I validated in my setup.

sonals avatar Jul 07 '26 18:07 sonals