fix(proxy_cli.py-&&-proxy_server.py): bump reset budget intervals and fix pool limits for prisma connections

This commit is contained in:
Krrish Dholakia 2024-02-06 19:39:49 -08:00
parent b6adeec347
commit 4a0df3cb4f
5 changed files with 36 additions and 18 deletions

View file

@ -391,13 +391,7 @@ class PrismaClient:
# Now you can import the Prisma Client
from prisma import Prisma # type: ignore
self.db = Prisma(
http={
"limits": httpx.Limits(
max_connections=1000, max_keepalive_connections=100
)
}
) # Client to connect to Prisma db
self.db = Prisma() # Client to connect to Prisma db
def hash_token(self, token: str):
# Hash the string using SHA-256