-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathwrangler.api.toml
More file actions
32 lines (26 loc) · 866 Bytes
/
Copy pathwrangler.api.toml
File metadata and controls
32 lines (26 loc) · 866 Bytes
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
name = "arxiv-api"
main = "src/api-worker/index.ts"
compatibility_date = "2025-01-01"
workers_dev = true
[[kv_namespaces]]
binding = "CACHE"
id = "ed3c323de9cc48a4b332beec939597a4"
[[d1_databases]]
binding = "DB"
database_name = "arxiv-explorer"
database_id = "67fa825b-9f3e-478c-99d2-3e5cc1b0f3de"
[[vectorize]]
binding = "VECTORIZE"
index_name = "arxiv-papers"
[ai]
binding = "AI"
[vars]
ARXIV_FETCH_CATEGORIES = "cs.LG,cs.CL,cs.CV,stat.ML"
SUMMARY_MODEL = "@cf/meta/llama-3.1-8b-instruct"
EMBEDDING_MODEL = "@cf/baai/bge-base-en-v1.5"
CACHE_TTL_SEARCH_SECONDS = "7200"
CACHE_TTL_TRENDING_SECONDS = "3600"
CACHE_TTL_EMBED_SECONDS = "86400"
ALLOWED_ORIGIN = "https://arxivexplorer.arxivexplorer.workers.dev"
# Set ADMIN_SECRET via: wrangler secret put ADMIN_SECRET --config wrangler.api.toml
# Required for /admin/* endpoints (Vectorize upserts, maintenance)