-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathwrangler.toml
40 lines (34 loc) · 993 Bytes
/
wrangler.toml
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
#:schema node_modules/wrangler/config-schema.json
name = "agent-template"
main = "src/index.ts"
compatibility_date = "2024-09-23"
compatibility_flags = ["nodejs_compat"]
# Configure module bundling rules
rules = [
{ type = "ESModule", globs = ["**/*.js"], fallthrough = true }
]
# Environment variables (not secrets)
[vars]
ENABLE_TELEGRAM = true
ENABLE_FARCASTER = true
ENABLE_TWITTER = false # Twitter API
LLM_MODEL = "openai/gpt-4o-mini" # Model to use for LLM responses
USE_CF_GATEWAY = true # Optional: Toggle for Cloudflare AI Gateway
CF_ACCOUNT_ID = "" # Optional: Cloudflare Account ID for AI gateway
CF_GATEWAY_ID = "" # Optional: Cloudflare Gateway ID
# Cron Triggers
[triggers]
# crons = [
# "0 */6 * * *", # radnom action: 00:00, 06:00, 12:00, 18:00 UTC
# ]
# Workers Logs
[observability]
enabled = true
# Build configuration
[build]
command = "npm run build"
# KV namespace for agent memory
[[kv_namespaces]]
# binding = "agent_memory"
# id = ""
# preview_id = ""