-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.example
More file actions
147 lines (132 loc) · 6.45 KB
/
env.example
File metadata and controls
147 lines (132 loc) · 6.45 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
# CopilotKit Runtime Server - Environment Configuration
# Copy this file to .env and fill in your API keys
# ============================================================================
# SERVER CONFIGURATION
# ============================================================================
PORT=4000
NODE_ENV=development
# ============================================================================
# CORS CONFIGURATION
# ============================================================================
# Specify allowed origins for Cross-Origin Resource Sharing (CORS)
# Multiple origins can be separated by commas
# If not specified, all origins (*) will be allowed
# CORS_ORIGINS=http://localhost:3000,https://yourdomain.com,https://www.yourdomain.com
# ============================================================================
# DEFAULT PROVIDER OVERRIDE (HIGHEST PRIORITY)
# ============================================================================
# Specify which provider to use as the default for /api/copilotkit endpoint
# This overrides the normal order-based selection
# Available options: openai, azure_openai, anthropic, groq, gemini, langchain, openai_assistant, empty_adapter
# DEFAULT_PROVIDER=gemini
# ============================================================================
# OPENAI CONFIGURATION
# ============================================================================
# Get your API key from: https://platform.openai.com/api-keys
OPENAI_API_KEY=sk-your_openai_api_key_here
OPENAI_MODEL=gpt-4o
# ============================================================================
# AZURE OPENAI CONFIGURATION
# ============================================================================
# Set up through Azure Portal: https://portal.azure.com/
# AZURE_OPENAI_API_KEY=your_azure_openai_api_key_here
# AZURE_OPENAI_BASE_URL=https://your-instance.openai.azure.com/openai/deployments/your-model
# AZURE_OPENAI_API_VERSION=2024-04-01-preview
# ============================================================================
# ANTHROPIC CONFIGURATION
# ============================================================================
# Get your API key from: https://console.anthropic.com/
# ANTHROPIC_API_KEY=sk-ant-your_anthropic_api_key_here
# ANTHROPIC_MODEL=claude-3-5-sonnet-20241022
# ============================================================================
# GROQ CONFIGURATION
# ============================================================================
# Get your API key from: https://console.groq.com/
# GROQ_API_KEY=gsk_your_groq_api_key_here
# GROQ_MODEL=llama-3.3-70b-versatile
# ============================================================================
# GOOGLE GEMINI CONFIGURATION
# ============================================================================
# Get your API key from: https://aistudio.google.com/
# GOOGLE_API_KEY=AIza_your_google_api_key_here
# GOOGLE_MODEL=gemini-1.5-pro
# ============================================================================
# LANGCHAIN CONFIGURATION
# ============================================================================
# Uses OpenAI models through LangChain framework
# Requires @langchain/openai package to be installed
# Can use the same key as OPENAI_API_KEY or a separate one
# LANGCHAIN_OPENAI_API_KEY=sk-your_openai_api_key_here
# LANGCHAIN_MODEL=gpt-4o
# ============================================================================
# OPENAI ASSISTANT CONFIGURATION
# ============================================================================
# Create assistants at: https://platform.openai.com/assistants
# Requires openai package to be installed
# OPENAI_ASSISTANT_API_KEY=sk-your_openai_api_key_here
# OPENAI_ASSISTANT_ID=asst_your_assistant_id_here
# OPENAI_ORGANIZATION_ID=org-your_organization_id_here
# OPENAI_CODE_INTERPRETER=true
# OPENAI_FILE_SEARCH=true
# ============================================================================
# DEVELOPMENT/TESTING CONFIGURATION
# ============================================================================
# Enable empty adapter for testing without API keys
# Useful for development and testing scenarios
ENABLE_EMPTY_ADAPTER=true
# ============================================================================
# AWS BEDROCK CONFIGURATION
# ============================================================================
# Set up through AWS Console: https://console.aws.amazon.com/bedrock/
# Requires AWS credentials with Bedrock permissions
# AWS_ACCESS_KEY_ID=AKIA_your_aws_access_key_here
# AWS_SECRET_ACCESS_KEY=your_aws_secret_access_key_here
# AWS_SESSION_TOKEN=your_aws_session_token_here # Optional for temporary credentials
# AWS_REGION=us-east-1
# AWS_BEDROCK_MODEL=amazon.nova-lite-v1:0
# Available Bedrock models:
# - anthropic.claude-3-sonnet-20240229-v1:0
# - anthropic.claude-3-haiku-20240307-v1:0
# - anthropic.claude-v2:1
# - amazon.titan-text-express-v1
# - cohere.command-text-v14
# - ai21.j2-ultra-v1
# - meta.llama2-70b-chat-v1
# ============================================================================
# EXAMPLE CONFIGURATIONS
# ============================================================================
#
# For OpenAI only setup:
# OPENAI_API_KEY=sk-proj-xxxxxxxxxxxxxxxxxxxxx
# OPENAI_MODEL=gpt-4o
#
# For Anthropic only setup:
# ANTHROPIC_API_KEY=sk-ant-xxxxxxxxxxxxxxxxxxxxx
# ANTHROPIC_MODEL=claude-3-5-sonnet-20241022
#
# For multiple providers setup:
# OPENAI_API_KEY=sk-proj-xxxxxxxxxxxxxxxxxxxxx
# ANTHROPIC_API_KEY=sk-ant-xxxxxxxxxxxxxxxxxxxxx
# GROQ_API_KEY=gsk_xxxxxxxxxxxxxxxxxxxxx
#
# For LangChain setup:
# OPENAI_API_KEY=sk-proj-xxxxxxxxxxxxxxxxxxxxx
# LANGCHAIN_OPENAI_API_KEY=sk-proj-xxxxxxxxxxxxxxxxxxxxx
# LANGCHAIN_MODEL=gpt-4o
#
# For OpenAI Assistant setup:
# OPENAI_ASSISTANT_API_KEY=sk-proj-xxxxxxxxxxxxxxxxxxxxx
# OPENAI_ASSISTANT_ID=asst_xxxxxxxxxxxxxxxxxxxxx
# OPENAI_ORGANIZATION_ID=org-xxxxxxxxxxxxxxxxxxxxx
# OPENAI_CODE_INTERPRETER=true
# OPENAI_FILE_SEARCH=true
# ============================================================================
# NOTES:
# ============================================================================
# - At least one API key is required for operation
# - If no API keys are provided, set ENABLE_EMPTY_ADAPTER=true for testing
# - Uncomment and fill in the providers you want to use
# - You can use multiple providers simultaneously
# - The first configured provider will be used as the primary adapter
# - Remove the # symbol from the beginning of lines to uncomment them
# - Keep your API keys secure and never commit them to version control