-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.example
More file actions
49 lines (40 loc) · 1.76 KB
/
env.example
File metadata and controls
49 lines (40 loc) · 1.76 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# OpenAI Agents SDK Learning Project - Environment Variables
# Copy this file to .env and add your actual API keys
# =============================================================================
# Required API Keys
# =============================================================================
# OpenAI API Key (for OpenAI models)
# Get from: https://platform.openai.com/api-keys
OPENAI_API_KEY=sk-...
# Gemini API Key (for Google Gemini models)
# Get from: https://makersuite.google.com/app/apikey
GEMINI_API_KEY=...
# OpenRouter API Key (for various models via OpenRouter)
# Get from: https://openrouter.ai/keys
OPENROUTER_API_KEY=sk-...
# Mistral API Key (for Mistral models)
# Get from: https://console.mistral.ai/api-keys/
MISTRAL_API_KEY=...
# =============================================================================
# Optional Configuration
# =============================================================================
# Model Configuration (optional - defaults are used if not set)
# DEFAULT_MODEL=gemini-2.0-flash
# DEFAULT_BASE_URL=https://generativelanguage.googleapis.com/v1beta/openai/
# Debug Settings (optional)
# TRACING_ENABLED=false
# DEBUG_MODE=false
# =============================================================================
# Notes
# =============================================================================
#
# Different modules use different API keys:
# - 01_agents: Primarily uses GEMINI_API_KEY and OPENROUTER_API_KEY
# - 02_runner: Uses OPENROUTER_API_KEY for most examples
# - 03_results: Uses GEMINI_API_KEY
# - 04_stream: Uses GEMINI_API_KEY
# - 05_tools: Uses GEMINI_API_KEY and MISTRAL_API_KEY
# - Projects: Uses GEMINI_API_KEY
#
# You don't need all keys to run the examples - each module specifies
# which key it requires in its documentation.