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

Run the run_examples.py file and nothing happens #130

Open
IVERSEE opened this issue Oct 8, 2023 · 0 comments
Open

Run the run_examples.py file and nothing happens #130

IVERSEE opened this issue Oct 8, 2023 · 0 comments

Comments

@IVERSEE
Copy link

IVERSEE commented Oct 8, 2023

this is my code:
from codeinterpreterapi import CodeInterpreterSession, settings, File
settings.OPENAI_API_KEY = "sk-***"

async def main():
print("AI0: XXX")
async with CodeInterpreterSession() as session:
user_request = "Analyse the reasons for the defeat of Germany in World War II."
response = await session.generate_response(
user_request
)
print("AI2: ", response.content)

if name == "main":
import asyncio
asyncio.run(main())

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