Token Rate Limiting

WIP

Cleanup 🧹

Remove existing rate limiting logic

Cleanup 🧼

Undo nit

Cleanup 🧽

Move db constants (avoids circular import)

WIP

WIP

Cleanup

Lint

Resolve alembic conflict

Fix mypy

Add backfill to migration

Update comment

Make unauthenticated users still adhere to global limits

Use Depends

Remove enum from table

Update migration error handling + deletion

Address verbal feedback, cleanup urls, minor nits
This commit is contained in:
Alan Hagedorn
2024-04-14 18:53:38 -07:00
committed by Chris Weaver
parent 7a408749cf
commit d7a704c0d9
24 changed files with 1497 additions and 298 deletions

View File

@@ -48,6 +48,11 @@ const nextConfig = {
source: "/admin/performance/custom-analytics",
destination: "/ee/admin/performance/custom-analytics",
},
// token rate limits
{
source: "/admin/token-rate-limits",
destination: "/ee/admin/token-rate-limits",
},
]
: [];