From cd6133630e9934c9fb656d853b04fda8ddd3673b Mon Sep 17 00:00:00 2001 From: hibobmaster Date: Sun, 28 May 2023 23:57:12 +0800 Subject: [PATCH] fix lint --- pandora.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandora.py b/pandora.py index 7a8a912..df4cfa0 100644 --- a/pandora.py +++ b/pandora.py @@ -60,7 +60,8 @@ class Pandora: async def test(): model = "text-davinci-002-render-sha-mobile" api_endpoint = "http://127.0.0.1:8008" - client = Pandora(api_endpoint) + async with aiohttp.ClientSession() as session: + client = Pandora(api_endpoint, session) conversation_id = None parent_message_id = str(uuid.uuid4()) first_time = True