Integrate your application with Azure OpenAI
Create an account + Generate an API Key
when setting the integration also set a base url
Set QUALIFIRE_API_KEY as an environment variable
QUALIFIRE_API_KEY=<your API key>
Modify the base path and add a X-Qualifire-Api-Key header
defaultHeaders
import os from openai import AzureOpenAI deployment = os.getenv("DEPLOYMENT_NAME", "qualifire-gpt-4") subscription_key = os.getenv("AZURE_OPENAI_API_KEY", "REPLACE_WITH_YOUR_KEY_VALUE_HERE") # Initialize Azure OpenAI client with key-based authentication client = AzureOpenAI( azure_endpoint = "https://proxy.qualifire.ai/api/providers/openai", deployment_id = deployment, api_key = subscription_key, api_version = "2024-05-01-preview", )