Repository navigation
Expand file tree
/
Copy pathenv.example
More file actions
121 lines (97 loc) · 5.25 KB
/
Copy pathenv.example
File metadata and controls
121 lines (97 loc) · 5.25 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
# Text2SQL Evaluation Toolkit - Environment Variables
# Copy this file to .env and fill in your actual credentials
# .env is already in .gitignore and will not be committed
# ===== WatsonX AI Credentials =====
# Required for wxai: prefixed models (e.g., wxai:meta-llama/llama-3-3-70b-instruct)
WATSONX_APIKEY=your_watsonx_api_key_here
WATSONX_API_BASE=https://us-south.ml.cloud.ibm.com
WATSONX_PROJECTID=your_project_id_here
# ===== Anthropic Claude API =====
# Required for anthropic: prefixed models (e.g., anthropic:claude-opus-4-1-20250805)
ANTHROPIC_API_KEY=your_anthropic_api_key_here
# ===== GEMINI API =====
# Required for google gemini: prefixed models (e.g., gemini:gemini-3-flash-preview or gemini:gemini-3.1-pro-preview)
GEMINI_API_KEY=your_gemini_api_key_here
# ===== OpenAI API =====
# Required for openai: prefixed models (e.g., openai:gpt-4o-mini)
OPENAI_API_KEY=your_openai_api_key_here
# Optional. Defaults to https://api.openai.com/v1. Set it only to reach an
# OpenAI-compatible server somewhere else (a gateway, a proxy, a self-hosted
# model) -- OpenAI itself needs nothing here.
# OPENAI_BASE_URL=https://api.openai.com/v1
# ===== vLLM API =====
# Required for vllm: prefixed models
VLLM_API_BASE=http://localhost:8000/v1
VLLM_API_KEY=optional_api_key_here
# ===== RITS API =====
# Required for rits prefixed models
RITS_API_KEY=your_rits_api_key_here
# ===== Database Connection Strings =====
# PostgreSQL (for PostgreSQL-based benchmarks)
POSTGRES_CONNECTION_STRING=postgresql://user:password@host:port/database
# MySQL (for benchmarks like beaver). For TLS add ?sslMode=VERIFY_IDENTITY, and
# &ssl_ca=/path/to/ca.pem if a private CA signs the server's certificate. The
# certificate is always verified; see docs/guide/configuration.md.
MYSQL_CONNECTION_STRING=mysql://user:password@host:port/database
# DB2 (for DB2-based benchmarks)
DB2_CONNECTION_STRING=DATABASE=dbname;HOSTNAME=host;PORT=port;PROTOCOL=TCPIP;UID=user;PWD=password;
# Presto (for Presto-based benchmarks)
PRESTO_CONNECTION_STRING=presto://user:password@host:port/catalog/schema
# ===== Optional Settings =====
# Logging level (DEBUG, INFO, WARNING, ERROR)
LOG_LEVEL=INFO
# ===== Dashboard deployment (shared/public mode only) =====
# Capability ceiling: full (local default), judge, or public.
# TEXT2SQL_DASHBOARD_MODE=public
# Google OAuth for sign-in. Without these, nobody can reach the judge tier.
# GOOGLE_CLIENT_ID=your_google_oauth_client_id
# GOOGLE_CLIENT_SECRET=your_google_oauth_client_secret
# Administrators, comma separated. These addresses always hold admin and can
# grant roles to others from the dashboard; everyone else starts read-only.
# Read at every startup and never overridden by a stored role, so this is the
# way back into a deployment whose role table is wrong. Addresses, not
# domains: a domain would make every colleague an admin of a public host.
# Required for a shared deployment -- startup refuses without one.
# TEXT2SQL_ADMIN_EMAILS=you@example.com
# watsonx. Both spellings are accepted for each of these, because the
# toolkit's WATSONX_PROJECTID has no underscore while IBM's own docs
# mostly write WATSONX_PROJECT_ID.
# WATSONX_APIKEY= (or WATSONX_API_KEY)
# WATSONX_API_BASE= (or WATSONX_URL)
# WATSONX_PROJECTID= (or WATSONX_PROJECT_ID)
# Encrypts per-user provider API keys before they are stored. Without it users
# cannot save their own keys and every request uses this server's credentials.
# At least 32 characters. Changing it means users re-enter their keys; it does
# not break the server. Generate with:
# python -c "import secrets; print(secrets.token_urlsafe(48))"
# TEXT2SQL_SECRET_KEY=
# Signing key for session cookies. Generate with:
# python -c "import secrets; print(secrets.token_urlsafe(48))"
# Without it sessions do not survive a restart.
# TEXT2SQL_SESSION_SECRET=
# Rate limits, applied only outside local (full) mode.
# TEXT2SQL_RATE_LIMIT_RPS=20
# TEXT2SQL_RATE_LIMIT_BURST=60
# TEXT2SQL_AUTH_RATE_LIMIT_RPS=1
# TEXT2SQL_AUTH_RATE_LIMIT_BURST=10
# LLM-as-judge budget. Rates are USD per million tokens as
# {"model": [prompt, completion]} and MUST be calibrated against a real invoice.
# TEXT2SQL_JUDGE_MONTHLY_BUDGET_USD=50
# TEXT2SQL_JUDGE_RATES={"default": [0.60, 1.80]}
# TEXT2SQL_JUDGE_DISABLED=false
# Proxy addresses whose X-Forwarded-* headers are believed, applied at the ASGI
# layer so the client address and scheme are corrected before any handler runs.
# This is the one to set behind a reverse proxy: uvicorn believes those headers
# only from 127.0.0.1 by default, and the proxy is a different container, so
# without it the app cannot see that TLS terminated at the proxy -- it then builds
# an http:// OAuth callback and Google refuses the sign-in with
# redirect_uri_mismatch. The compose deployment already sets it.
# TEXT2SQL_FORWARDED_ALLOW_IPS=10.0.0.0/8,172.16.0.0/12,192.168.0.0/16
# Legacy middleware-only equivalent, kept for compatibility. Leave it empty when
# TEXT2SQL_FORWARDED_ALLOW_IPS is set: it would re-read a header that has already
# been applied. Empty means trust none, since a proxy appends to X-Forwarded-For
# and its leftmost value is client-supplied.
# TEXT2SQL_TRUSTED_PROXIES=
# Session cookie Secure flag. Defaults to on outside local mode; set false only
# for a local HTTP experiment.
# TEXT2SQL_COOKIE_SECURE=true