-
Is there a way to add headers like "Ocp-Apim-Subscription-Key" to the config_list? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Have you tried adding "extra_headers" in the dict? |
Beta Was this translation helpful? Give feedback.
-
It work for me config_list = [ |
Beta Was this translation helpful? Give feedback.
It work for me
config_list = [
{
"model": "gpt-4",
"azure_deployment": "gpt-4",
"api_key": "fake",
"azure_ad_token": "Bearer ....",
"base_url": "endpoint....",
"api_type": "azure",
"api_version": "api version....",
"default_headers": {"Ocp-Apim-Subscription-Key": "secert.."},
}
]