mirror of
https://github.com/khoj-ai/khoj.git
synced 2025-02-17 08:04:21 +00:00
Standardize rate limits to 1/6 ratio
This commit is contained in:
parent
23a49b6b95
commit
b3dad1f393
1 changed files with 2 additions and 2 deletions
|
@ -167,10 +167,10 @@ async def text_to_speech(
|
||||||
common: CommonQueryParams,
|
common: CommonQueryParams,
|
||||||
text: str,
|
text: str,
|
||||||
rate_limiter_per_minute=Depends(
|
rate_limiter_per_minute=Depends(
|
||||||
ApiUserRateLimiter(requests=20, subscribed_requests=20, window=60, slug="chat_minute")
|
ApiUserRateLimiter(requests=10, subscribed_requests=60, window=60, slug="chat_minute")
|
||||||
),
|
),
|
||||||
rate_limiter_per_day=Depends(
|
rate_limiter_per_day=Depends(
|
||||||
ApiUserRateLimiter(requests=50, subscribed_requests=300, window=60 * 60 * 24, slug="chat_day")
|
ApiUserRateLimiter(requests=100, subscribed_requests=600, window=60 * 60 * 24, slug="chat_day")
|
||||||
),
|
),
|
||||||
) -> Response:
|
) -> Response:
|
||||||
voice_model = await ConversationAdapters.aget_voice_model_config(request.user.object)
|
voice_model = await ConversationAdapters.aget_voice_model_config(request.user.object)
|
||||||
|
|
Loading…
Add table
Reference in a new issue