-
Notifications
You must be signed in to change notification settings - Fork 10
/
wrangler.toml
23 lines (20 loc) · 912 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
name = "openai-caching-proxy-worker"
main = "src/index.ts"
compatibility_date = "2022-12-11"
# This cloudflare worker uses either Upstash or workers KV to store cache.
# To use Upstash (hosted redis-over-REST),
# https://docs.upstash.com/redis/quickstarts/cloudflareworkers
#
# 1. signing up for a free account at upstash.com, set your secrets below based on instructions
# here for `wrangler secret put` (or alternatively use the Cloudflare Workers web UI):
# https://developers.cloudflare.com/workers/platform/environment-variables/#adding-secrets-via-wrangler
# 2. Uncomment following environment variables config:
# [vars]
# - UPSTASH_REDIS_REST_TOKEN
# - UPSTASH_REDIS_REST_URL
# To use workers KV,
# 1. Run `wrangler kv:namespace create <YOUR_NAMESPACE>` in your terminal
# 2. Uncomment following config and fill in <YOUR_ID>:
# kv_namespaces = [
# { binding = "OPENAI_CACHE", id = "<YOUR_ID>" }
# ]