fix name pvd

This commit is contained in:
Jeremy Yin 2024-03-15 22:38:21 +08:00
parent 7c53602c08
commit 78e3c6d174
1 changed files with 2 additions and 2 deletions

View File

@ -9,9 +9,9 @@ from simplylab.providers import Providers
class ChatService:
def __init__(self, ctx: Context, provider: Providers):
def __init__(self, ctx: Context, providers: Providers):
self.ctx = ctx
self.pvd = provider
self.pvd = providers
async def get_ai_chat_response(self, req: GetAiChatResponseInput) -> GetAiChatResponseOutput:
if self.pvd.chat.check_user_message_limited_in_30_seconds(self.ctx.user.id):