In addition to regular API_KEY, BASE_URL etc we need to pass custom HTTP header (processed by API Management layer)
What is the way to do that?
In addition to regular API_KEY, BASE_URL etc we need to pass custom HTTP header (processed by API Management layer)
What is the way to do that?
Try the following
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="YOUR_BASE_URL",
default_headers="YOUR_REQUEST_HEADER",
)