adding model limits

This commit is contained in:
2026-07-21 15:43:26 -05:00
parent 8229d878da
commit a1f2f13b1d
4 changed files with 132 additions and 17 deletions
+4
View File
@@ -8,6 +8,10 @@ DATABASE_URL=postgres://user:password@localhost:5432/opencode_proxy
# Send one in Authorization: Bearer <key> or x-api-key.
# UNLIMITED_API_KEYS=["personal-unlimited-key"]
# Optional: override the built-in comma-separated model allowlist for ordinary clients.
# Unlimited API keys bypass this restriction. Set this to an empty value to allow every upstream model.
# ALLOWED_MODELS=kimi-k3,gpt-4.1
# Optional server settings
PORT=4005
MAX_CONTEXT_TOKENS=262144