File size: 417 Bytes
25a640f
 
 
 
 
c26a364
 
 
e0cbbfe
c26a364
 
 
25a640f
e0cbbfe
25a640f
 
e0cbbfe
25a640f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from codeinterpreterapi import CodeInterpreterSession


async def main():
    async with CodeInterpreterSession() as session:
        response = await session.generate_response(
            "Plot a sin wave and show it to me."
        )

        print("AI: ", response.content)
        for file in response.files:
            file.show_image()


if __name__ == "__main__":
    import asyncio

    asyncio.run(main())