Azure OpenAI is a great alternative to accessing the best models including GPT-4 and more in your private environments. Portkey provides complete support for Azure OpenAI.
azure-openai
Foundation Model
from the dropdowon on the modal.portkey.prompts.completions.create
interface to use the prompt in your application.
Parameter | Node SDK | Python SDK | REST Headers |
---|---|---|---|
AZURE RESOURCE NAME | azureResourceName | azure_resource_name | x-portkey-azure-resource-name |
AZURE DEPLOYMENT NAME | azureDeploymentId | azure_deployment_id | x-portkey-azure-deployment-id |
API VERSION | azureApiVersion | azure_api_version | x-portkey-azure-api-version |
AZURE API KEY | Authorization: “Bearer + “ | Authorization = “Bearer + “ | Authorization |
AZURE MODEL NAME | azureModelName | azure_model_name | x-portkey-azure-model-name |
JSON web token (JWT)
in the Authorization
header instead of the regular API Key
, you can use the forwardHeaders
parameter to do this.