You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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())
The text was updated successfully, but these errors were encountered:
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())
The text was updated successfully, but these errors were encountered: