This commit is contained in:
hibobmaster 2023-05-28 23:57:12 +08:00
parent 4eef6284d8
commit cd6133630e
Signed by: bobmaster
SSH key fingerprint: SHA256:5ZYgd8fg+PcNZNy4SzcSKu5JtqZyBF8kUhY7/k2viDk

View file

@ -60,7 +60,8 @@ class Pandora:
async def test(): async def test():
model = "text-davinci-002-render-sha-mobile" model = "text-davinci-002-render-sha-mobile"
api_endpoint = "http://127.0.0.1:8008" 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 conversation_id = None
parent_message_id = str(uuid.uuid4()) parent_message_id = str(uuid.uuid4())
first_time = True first_time = True