-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwrangler.toml
More file actions
54 lines (44 loc) · 1.31 KB
/
wrangler.toml
File metadata and controls
54 lines (44 loc) · 1.31 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
name = "billy-bullshit"
main = "src/index.ts"
compatibility_date = "2024-01-01"
node_compat = true
# Account and zone settings (update with your Cloudflare account)
# account_id = "your-account-id"
# zone_id = "your-zone-id"
[env.production]
name = "billy-bullshit-prod"
routes = [
{ pattern = "billy.chitty.cc", custom_domain = true }
]
# KV namespaces for conversation history
# Provision before deploying:
# wrangler kv:namespace create CONVERSATIONS
# wrangler kv:namespace create CONVERSATIONS --preview
# Then paste the namespace IDs below
[[kv_namespaces]]
binding = "CONVERSATIONS"
id = "" # REQUIRED: run command above and paste ID here
preview_id = "" # REQUIRED: run command above and paste ID here
# AI binding for Cloudflare Workers AI
[ai]
binding = "AI"
# Analytics Engine for tracking metrics
[[analytics_engine_datasets]]
binding = "ANALYTICS"
# Secrets (set via: wrangler secret put SECRET_NAME)
# - ANTHROPIC_API_KEY (for Claude API)
# - OPENAI_API_KEY (optional, for OpenAI fallback)
# Environment variables
[vars]
ENVIRONMENT = "development"
MAX_CONVERSATION_LENGTH = "20"
DEFAULT_MODEL = "@cf/meta/llama-3.1-8b-instruct"
[env.production.vars]
ENVIRONMENT = "production"
DEFAULT_MODEL = "@cf/meta/llama-3.1-8b-instruct"
# Limits
[limits]
cpu_ms = 50000
# Observability
[observability]
enabled = true