Supporting extraHeaders for a provider
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.
Done! available in the next release soon
Thanks! I validated in my setup.