-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path.dev.vars.example
More file actions
22 lines (19 loc) · 1.33 KB
/
.dev.vars.example
File metadata and controls
22 lines (19 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#
# Copy to `.dev.vars` for local development:
# cp .dev.vars.example .dev.vars
#
# Wrangler will load these when you run `wrangler dev`.
#
# NOTE: `.dev.vars` is ignored by git. Do NOT commit real secrets.
#
# Config-driven gateway (required)
# - 模型 ID 必须使用 `provider.modelName`(不提供默认模型/默认 provider)
# - provider 的密钥可以直接写到 config(本文件是示例;真实密钥只放你本地 `.dev.vars` 或线上 wrangler secrets)
# - 注意:`.dev.vars` 是 dotenv 格式,通常需要把 JSON 写成单行(wrangler.toml 才更适合多行)。
ANY_API_CONFIG={"version":1,"providers":{"openai-provider":{"type":"openai-responses","baseURL":"https://your-relay-server.example/openai","apiKey":"REPLACE_ME","quirks":{"noInstructions":false,"noPreviousResponseId":false},"models":{"model-a":{"upstreamModel":"gpt-5.2","options":{"reasoningEffort":"high","maxInstructionsChars":12000}}}},"gemini-provider":{"type":"gemini","baseURL":"https://generativelanguage.googleapis.com","apiKey":"REPLACE_ME","models":{"model-b":{"upstreamModel":"gemini-3-pro-preview"}}}}}
# Debug logging
# ANY_API_DEBUG=true
# For local dev only you can put secrets here:
# WORKER_AUTH_KEY=your-worker-auth-key # or WORKER_AUTH_KEYS=key1,key2
# Optional: multiple client auth keys (comma-separated)
# WORKER_AUTH_KEYS=key1,key2,key3