-
-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy path.env.azure.example
More file actions
31 lines (26 loc) · 1.06 KB
/
.env.azure.example
File metadata and controls
31 lines (26 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Azure OpenAI Configuration for Jupyter AI Agents
#
# Copy this file to .env and fill in your values:
# cp .env.azure.example .env
#
# Then load it:
# source .env
#
# Or use direnv:
# direnv allow
# Azure OpenAI API Key (required)
export AZURE_OPENAI_API_KEY="your-api-key-here"
# Azure OpenAI Endpoint - Base URL only (required)
# Format: https://your-resource-name.openai.azure.com
# Do NOT include /openai/deployments/... or query parameters
export AZURE_OPENAI_ENDPOINT="https://your-resource-name.openai.azure.com"
# Azure OpenAI API Version (optional, defaults to latest)
# Use the version that matches your deployment
export AZURE_OPENAI_API_VERSION="2024-08-01-preview"
# Example deployment names you might use with --model-name:
# - gpt-4o-mini
# - gpt-4o
# - gpt-35-turbo
# - Your custom deployment names
# Test your configuration:
# python -c "import os; print('API Key:', 'SET' if os.getenv('AZURE_OPENAI_API_KEY') else 'NOT SET'); print('Endpoint:', os.getenv('AZURE_OPENAI_ENDPOINT')); print('Version:', os.getenv('AZURE_OPENAI_API_VERSION', 'default'))"