codeinterpreter-api
codeinterpreter-api copied to clipboard
Run the run_examples.py file and nothing happens
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())