From 17b78c9e3edb653f5b43b19b2d0da3b9f2369a0d Mon Sep 17 00:00:00 2001 From: Ronny Gunawan <3048897+ronnygunawan@users.noreply.github.com> Date: Sat, 3 Feb 2024 22:58:21 +0700 Subject: [PATCH] Lower rate limit for gemini --- BotNet.CommandHandlers/AI/Gemini/GeminiTextPromptHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BotNet.CommandHandlers/AI/Gemini/GeminiTextPromptHandler.cs b/BotNet.CommandHandlers/AI/Gemini/GeminiTextPromptHandler.cs index a758939..0a94135 100644 --- a/BotNet.CommandHandlers/AI/Gemini/GeminiTextPromptHandler.cs +++ b/BotNet.CommandHandlers/AI/Gemini/GeminiTextPromptHandler.cs @@ -24,7 +24,7 @@ public sealed class GeminiTextPromptHandler( ILogger logger ) : ICommandHandler { internal static readonly RateLimiter CHAT_RATE_LIMITER = RateLimiter.PerChat(5, TimeSpan.FromMinutes(5)); - internal static readonly RateLimiter VIP_CHAT_RATE_LIMITER = RateLimiter.PerChat(60, TimeSpan.FromMinutes(1)); + internal static readonly RateLimiter VIP_CHAT_RATE_LIMITER = RateLimiter.PerChat(5, TimeSpan.FromMinutes(2)); private readonly ITelegramBotClient _telegramBotClient = telegramBotClient; private readonly GeminiClient _geminiClient = geminiClient;