Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code run endless #5

Open
thangckt opened this issue Jun 29, 2024 · 0 comments
Open

code run endless #5

thangckt opened this issue Jun 29, 2024 · 0 comments

Comments

@thangckt
Copy link

thangckt commented Jun 29, 2024

hi @mapluisch

I tried to run this code in jupyter

import asyncio
from .gpt import GPT

async def run_session():
    # create gpt instance & send initial prompt
    session = GPT(prompt="Tell me a joke.", streaming=False)
    await session.start()
    await session.close()

asyncio.run(run_session())

The code work normal, and i can get text return from chatgpt.
But, after the browser is closed, the code does not stop.

Can you check it.
Thank.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant