Azure OpenAI
Azure OpenAI Provider
Section titled “Azure OpenAI Provider”Use ArtemisKit with Azure OpenAI Service.
Important: Model vs Deployment
Section titled “Important: Model vs Deployment”The model field in your scenario is for display purposes only when using Azure OpenAI.
Unlike standard OpenAI, Azure OpenAI uses deployments. The actual model is determined by your Azure deployment configuration, not by what you specify in ArtemisKit.
1. Create Azure OpenAI Resource
Section titled “1. Create Azure OpenAI Resource”Create an Azure OpenAI resource in the Azure Portal and deploy a model.
2. Set Environment Variables
Section titled “2. Set Environment Variables”export AZURE_OPENAI_API_KEY="your-key"export AZURE_OPENAI_RESOURCE_NAME="your-resource-name"export AZURE_OPENAI_DEPLOYMENT_NAME="your-deployment-name"export AZURE_OPENAI_API_VERSION="2024-02-15-preview" # Optional3. Configure Scenario
Section titled “3. Configure Scenario”name: my-testprovider: azure-openaimodel: gpt-5 # Display only - actual model is your deployment
cases: - id: example prompt: "Hello" expected: type: contains values: ["hello"] mode: anyConfig File
Section titled “Config File”Configure Azure OpenAI in your artemis.config.yaml:
provider: azure-openaimodel: gpt-5 # Display only
providers: azure-openai: apiKey: ${AZURE_OPENAI_API_KEY} resourceName: ${AZURE_OPENAI_RESOURCE_NAME} deploymentName: ${AZURE_OPENAI_DEPLOYMENT_NAME} apiVersion: 2024-02-15-preview timeout: 60000 maxRetries: 2Environment Variables
Section titled “Environment Variables”| Variable | Description |
|---|---|
AZURE_OPENAI_API_KEY | Your Azure OpenAI API key |
AZURE_OPENAI_RESOURCE_NAME | Your resource name |
AZURE_OPENAI_DEPLOYMENT_NAME | Your deployment name |
AZURE_OPENAI_API_VERSION | API version (optional) |
API Versions
Section titled “API Versions”Common API versions:
2024-02-15-preview(recommended)2023-12-01-preview2023-05-15
Troubleshooting
Section titled “Troubleshooting”Authentication Error
Section titled “Authentication Error”Error: 401 UnauthorizedCheck that:
AZURE_OPENAI_API_KEYis correctAZURE_OPENAI_RESOURCE_NAMEmatches your Azure resource- The API key has access to the resource
Deployment Not Found
Section titled “Deployment Not Found”Error: 404 DeploymentNotFoundEnsure AZURE_OPENAI_DEPLOYMENT_NAME matches an existing deployment in your Azure resource.