-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.env.example
More file actions
104 lines (99 loc) · 4.86 KB
/
Copy path.env.example
File metadata and controls
104 lines (99 loc) · 4.86 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
# Infrastructure settings only.
# Provider credentials are added by users in the web UI:
# Account -> Provider setup.
OPENPROVIDER_BASE_URL=http://localhost:3000/v1
OPENPROVIDER_V1_CORS_ORIGINS=
OPENPROVIDER_DEFAULT_MODEL=auto
OPENPROVIDER_AUTO_MODEL=auto
OPENPROVIDER_HOST=127.0.0.1
OPENPROVIDER_PORT=3000
OPENPROVIDER_TIMEOUT_MS=60000
OPENPROVIDER_MODEL_SYNC_TTL_MS=3600000
OPENPROVIDER_MODEL_UNLOCK_PROMO_CODE=
OPENPROVIDER_FREE_MODELS_ONLY=true
# App-level request guard in Next proxy.ts.
# OpenProviderVSCode normally starts at most one request every 250ms and caches /v1/models for 5 minutes.
# These defaults block obvious single-client floods such as 100+ /v1 requests in one second.
OPENPROVIDER_RATE_LIMIT_ENABLED=true
OPENPROVIDER_RATE_LIMIT_BLOCK_MS=600000
OPENPROVIDER_RATE_LIMIT_API_BURST_MAX=100
OPENPROVIDER_RATE_LIMIT_API_BURST_WINDOW_MS=1000
OPENPROVIDER_RATE_LIMIT_API_SUSTAINED_MAX=600
OPENPROVIDER_RATE_LIMIT_API_SUSTAINED_WINDOW_MS=60000
OPENPROVIDER_RATE_LIMIT_APP_API_BURST_MAX=60
OPENPROVIDER_RATE_LIMIT_APP_API_BURST_WINDOW_MS=1000
OPENPROVIDER_RATE_LIMIT_APP_API_SUSTAINED_MAX=300
OPENPROVIDER_RATE_LIMIT_APP_API_SUSTAINED_WINDOW_MS=60000
OPENPROVIDER_RATE_LIMIT_PAGE_BURST_MAX=80
OPENPROVIDER_RATE_LIMIT_PAGE_BURST_WINDOW_MS=1000
OPENPROVIDER_RATE_LIMIT_PAGE_SUSTAINED_MAX=480
OPENPROVIDER_RATE_LIMIT_PAGE_SUSTAINED_WINDOW_MS=60000
MODEL_STATUS_STALE_HOURS=72
MODEL_STATUS_PROBE_TIMEOUT_MS=7000
MODEL_STATUS_PROBE_CONCURRENCY=2
MODEL_STATUS_PROVIDER_DELAY_MS=3000
MODEL_STATUS_MAX_RUNTIME_MS=60000
MODEL_STATUS_SLOW_RETRY_TIMEOUT_MS=12000
MODEL_STATUS_SLOW_RETRY_CONCURRENCY=1
# Optional safety cap. The route defaults to 25 so status checks cannot sweep every model unless you opt in.
# MODEL_STATUS_MAX_MODELS=25
# Optional: run cron with one saved workspace user's encrypted provider keys.
# If empty and exactly one user has saved provider keys, the cron uses that user automatically.
# MODEL_STATUS_USER_ID=
DATABASE_URL=postgres://user:password@host/database?sslmode=require
NEXTAUTH_URL=http://localhost:3000
NEXT_PUBLIC_SITE_URL=http://localhost:3000
NEXT_PUBLIC_GOOGLE_ADSENSE_CLIENT=ca-pub-9647614948015971
NEXTAUTH_SECRET=replace_with_openssl_rand_base64_32
OPENPROVIDER_KEY_ENCRYPTION_SECRET=replace_with_openssl_rand_base64_32
OPENPROVIDER_API_KEY_HASH_SECRET=replace_with_openssl_rand_base64_32
CRON_SECRET=replace_with_openssl_rand_base64_32
GOOGLE_CLIENT_ID=your_google_oauth_client_id
GOOGLE_CLIENT_SECRET=your_google_oauth_client_secret
NVIDIA_BASE_URL=https://integrate.api.nvidia.com/v1
# Optional NVIDIA visual/image generation endpoint.
# NVIDIA_IMAGE_BASE_URL=https://ai.api.nvidia.com/v1/genai
GROQ_BASE_URL=https://api.groq.com/openai/v1
# Optional; these are derived from CLOUDFLARE_ACCOUNT_ID when left unset.
# CLOUDFLARE_BASE_URL=https://api.cloudflare.com/client/v4/accounts/your_account_id_here/ai/v1
# CLOUDFLARE_MODELS_BASE_URL=https://api.cloudflare.com/client/v4/accounts/your_account_id_here/ai
SAMBANOVA_BASE_URL=https://api.sambanova.ai/v1
# Also supported: SAMBACLOUD_BASE_URL
SILICONFLOW_BASE_URL=https://api.siliconflow.com/v1
# Also supported: SILICONCLOUD_BASE_URL
COHERE_BASE_URL=https://api.cohere.ai/compatibility/v1
COHERE_MODELS_BASE_URL=https://api.cohere.ai/v1
MISTRAL_BASE_URL=https://api.mistral.ai/v1
OPENROUTER_BASE_URL=https://openrouter.ai/api/v1
FREEMODEL_BASE_URL=https://api.freemodel.dev/v1
FREEMODEL_MODELS_BASE_URL=https://api.freemodel.dev/v1
# FreeModel Claude models are discovered from https://cc.freemodel.dev/v1/models
# and routed through its Anthropic Messages API.
PUTER_BASE_URL=https://api.puter.com/puterai/openai/v1
PUTER_MODELS_BASE_URL=https://api.puter.com/puterai/chat
SHUTTLEAI_BASE_URL=https://api.shuttleai.com/v1
SHUTTLEAI_MODELS_BASE_URL=https://api.shuttleai.com/v1
ROUTEWAY_BASE_URL=https://api.routeway.ai/v1
ROUTEWAY_MODELS_BASE_URL=https://api.routeway.ai/v1
LLM_GATEWAY_BASE_URL=https://api.llmgateway.io/v1
LLM_GATEWAY_MODELS_BASE_URL=https://api.llmgateway.io/v1
APIFREELLM_BASE_URL=https://apifreellm.com/api/v1
CERBES_BASE_URL=https://api.cerebras.ai/v1
# Also supported: CEREBRAS_BASE_URL
ZAI_BASE_URL=https://api.z.ai/api/paas/v4
# Also supported: GLM_BASE_URL
GEMINI_BASE_URL=https://generativelanguage.googleapis.com/v1beta/openai
GEMINI_MODELS_BASE_URL=https://generativelanguage.googleapis.com/v1beta/openai
ZENMUX_BASE_URL=https://zenmux.ai/api/v1
LLM7_BASE_URL=https://api.llm7.io/v1
# Ollama chats use the OpenAI-compatible cloud endpoint; discovery uses /api/tags and keeps only :cloud models.
OLLAMA_BASE_URL=https://ollama.com/v1
OLLAMA_MODELS_BASE_URL=https://ollama.com/api
HF_BASE_URL=https://router.huggingface.co/v1
POLLINATIONS_BASE_URL=https://text.pollinations.ai/openai
# OpenProvider free guest chat route.
# Keep the real upstream URL only in .env or hosting environment variables.
OPENPROVIDER_GUEST_CHAT_URL=
OPENPROVIDER_GUEST_ORIGIN=
OPENPROVIDER_GUEST_REFERER=
POLLINATIONS_MODELS_BASE_URL=https://text.pollinations.ai