codeinterpreter-api
codeinterpreter-api copied to clipboard
👾 Open source implementation of the ChatGPT Code Interpreter
The Dataset Analysis example seems broken. agenerate_response in session.py logs while running verbose mode ``` ("Must provide an 'engine' or 'deployment_id' parameter to create a ",). ```` After running from...
I'm trying to run the code on Windows 11: from codeinterpreterapi import CodeInterpreterSession OPENAI_API_KEY="sk-my Open AI KEY" async def main(): # create a session session = CodeInterpreterSession(openai_api_key=OPENAI_API_KEY, model="gpt-3.5-turbo") await session.astart()...
async with CodeInterpreterSession(llm=llm, tools = [SimulatorTool()]) as session: print("Code Interpreter Session started.") prompt = ''' Simulate the sales, if unemployment_rate is 5.5, and fed_rate is 0.8? ''' user_request = prompt...
Great package! But when I use CSV or XLSX, the tool is not able to use the actual column names in the file. Is there something I should do?
Getting this error for gpt-4. ``` deployment_id = 'gpt-4' with CodeInterpreterSession(deployment_id = deployment_id) as session: ``` ``` INFO: Using a LocalBox which is not fully isolated and not scalable across...
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...
I cannot find the related content in doc or example. and how to continune code interpret chat? Do i have to upload the file again?
Hi, I tried to run the examples in the README and am running into this error. Any help is appreciated. Thanks. ``` /usr/local/lib/python3.10/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/pydevd_schema.py:13622: RuntimeWarning: coroutine 'CodeInterpreterSession.agenerate_response' was never awaited self.source...
**this is my code:** ```python from codeinterpreterapi import CodeInterpreterSession, File import os, dotenv import openai ### Lade Variabeln ### os.environ["OPENAI_API_KEY"] = "sk-XXXXXXXXXXX-Its my key:)YYYYYY" async def main(): # context manager...
hi thanks for this amazing project, it is actually more accurate than langchain one and pandasAI, but i observe this issue excpecially when running on windows system. this is really...