codeinterpreter-api icon indicating copy to clipboard operation
codeinterpreter-api copied to clipboard

Run the run_examples.py file and nothing happens

Open IVERSEE opened this issue 2 years ago • 0 comments

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())

IVERSEE avatar Oct 08 '23 10:10 IVERSEE