Azure OpenAI
Configuration
Section titled “Configuration”| Variable | Required |
|---|---|
AZURE_OPENAI_API_KEY | Yes |
AZURE_OPENAI_ENDPOINT | Yes |
AZURE_OPENAI_DEPLOYMENT | Yes |
Gateway
Section titled “Gateway”curl -X POST http://localhost:8080/v1/chat/completions \ -H "Content-Type: application/json" \ -d '{"model": "azure/gpt-4", "messages": [{"role": "user", "content": "Hello!"}]}'Library
Section titled “Library”use llmg_providers::azure::AzureOpenAiClient;use llmg_core::provider::Provider;
let client = AzureOpenAiClient::from_env()?;Features
Section titled “Features”- Chat completions
- Embeddings
- Azure-specific authentication