-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
124 lines (86 loc) · 6.35 KB
/
.env.example
File metadata and controls
124 lines (86 loc) · 6.35 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
# Codernic Models Configuration - Environment Variables Template
# ─────────────────────────────────────────────────────────────────────────────
# Codernic Models Configuration
# ─────────────────────────────────────────────────────────────────────────────
# Default provider to use (must match a provider id in .codernicrc.json)
CODERNIC_MODELS_DEFAULT=local-gemma
# Fallback provider if default is unavailable
CODERNIC_MODELS_FALLBACK=azure-openai
# Health check interval in milliseconds (default: 300000 = 5 minutes, 0 to disable)
CODERNIC_MODELS_HEALTH_CHECK_INTERVAL=300000
# ─────────────────────────────────────────────────────────────────────────────
# Ollama (Local) Configuration
# ─────────────────────────────────────────────────────────────────────────────
# Ollama server URL (default: http://localhost:11434)
OLLAMA_API_BASE=http://localhost:11434
# ─────────────────────────────────────────────────────────────────────────────
# OpenAI Configuration
# ─────────────────────────────────────────────────────────────────────────────
# OpenAI API key from https://platform.openai.com/api-keys
OPENAI_API_KEY=sk-...
# OpenAI base URL (only needed if using proxy or custom endpoint)
OPENAI_API_BASE=https://api.openai.com/v1
# ─────────────────────────────────────────────────────────────────────────────
# Azure OpenAI Configuration (Enterprise)
# ─────────────────────────────────────────────────────────────────────────────
# Azure OpenAI resource endpoint
# Example: https://my-resource.openai.azure.com
AZURE_OPENAI_ENDPOINT=https://your-resource.openai.azure.com
# Azure OpenAI API key
AZURE_OPENAI_KEY=your-api-key-here
# Azure OpenAI deployment name (if different from model name)
AZURE_OPENAI_DEPLOYMENT=gpt-4
# Azure subscription ID (for RBAC)
AZURE_SUBSCRIPTION_ID=your-subscription-id
# ─────────────────────────────────────────────────────────────────────────────
# AWS Bedrock Configuration
# ─────────────────────────────────────────────────────────────────────────────
# AWS Access Key ID
AWS_ACCESS_KEY_ID=your-access-key
# AWS Secret Access Key
AWS_SECRET_ACCESS_KEY=your-secret-key
# AWS Region (e.g., us-east-1)
AWS_REGION=us-east-1
# ─────────────────────────────────────────────────────────────────────────────
# Orchestrator Configuration
# ─────────────────────────────────────────────────────────────────────────────
# Database directory for Codernic indexes (default: .codernic)
CODERNIC_DB_DIR=.codernic
# Enable metrics collection
CODERNIC_METRICS_ENABLED=true
# Enable detailed logging
CODERNIC_LOGGING_ENABLED=true
# ─────────────────────────────────────────────────────────────────────────────
# Cost Optimization
# ─────────────────────────────────────────────────────────────────────────────
# Enable response caching
CODERNIC_CACHE_ENABLED=true
# Cache TTL in milliseconds (default: 604800000 = 7 days)
CODERNIC_CACHE_TTL_MS=604800000
# Enable prompt compression
CODERNIC_COMPRESSION_ENABLED=true
# Daily budget in USD (0 = unlimited)
CODERNIC_BUDGET_DAILY=50
# Monthly budget in USD (0 = unlimited)
CODERNIC_BUDGET_MONTHLY=500
# Block execution when budget exceeded (true/false)
CODERNIC_BUDGET_BLOCK_ON_EXCEEDED=false
# ─────────────────────────────────────────────────────────────────────────────
# Production Hardening
# ─────────────────────────────────────────────────────────────────────────────
# Max retries on failure (default: 2)
CODERNIC_MAX_RETRIES=2
# Retry initial delay in milliseconds (default: 1000)
CODERNIC_RETRY_INITIAL_DELAY_MS=1000
# Retry backoff multiplier (default: 2)
CODERNIC_RETRY_BACKOFF_MULTIPLIER=2
# Circuit breaker failure threshold (default: 5)
CODERNIC_CIRCUIT_FAILURE_THRESHOLD=5
# Circuit breaker reset timeout in milliseconds (default: 60000)
CODERNIC_CIRCUIT_RESET_TIMEOUT_MS=60000
# Rate limiter: max requests
CODERNIC_RATE_LIMIT_MAX_REQUESTS=100
# Rate limiter: window in milliseconds
CODERNIC_RATE_LIMIT_WINDOW_MS=60000
# Rate limiter: block on exceeded (true/false)
CODERNIC_RATE_LIMIT_BLOCK_ON_EXCEEDED=false