# Feedback - Please make a Code Interpreter API

**URL:** <https://community.openai.com/t/feedback-please-make-a-code-interpreter-api/292165>\
**Category:** Plugins / Actions builders\
**Tags:** gpt-4, chatgpt, plugin-development, api, chatgpt-plugin\
**Created:** [July 9, 2023, 11:17pm UTC](https://community.openai.com/t/feedback-please-make-a-code-interpreter-api/292165 "2023-07-09T23:17:56Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![charleswilliams1120](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/charleswilliams1120/32/118514_2.png) [@charleswilliams1120](https://community.openai.com/u/charleswilliams1120)\
**Post date:** [July 15, 2023, 1:07pm UTC](https://community.openai.com/t/feedback-please-make-a-code-interpreter-api/292165/21 "2023-07-15T13:07:29Z")

</div>

You can already use your API in studio code and android studio canary … you can also check your code with the repl in aichat $ cargo install aichat --force

---

<div class="post-metadata">

**Author:** ![magejosh](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/magejosh/32/130123_2.png) [@magejosh](https://community.openai.com/u/magejosh)\
**Post date:** [July 15, 2023, 3:38pm UTC](https://community.openai.com/t/feedback-please-make-a-code-interpreter-api/292165/22 "2023-07-15T15:38:38Z")

</div>

This sounds an awful lot like:  
I’d really like to pay more money, to use the features you already provide, where you do all the work for me instead of expecting me to optimize my process.

---

<div class="post-metadata">

**Author:** ![charleswilliams1120](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/charleswilliams1120/32/118514_2.png) [@charleswilliams1120](https://community.openai.com/u/charleswilliams1120)\
**Post date:** [July 15, 2023, 5:59pm UTC](https://community.openai.com/t/feedback-please-make-a-code-interpreter-api/292165/23 "2023-07-15T17:59:04Z")

</div>

I stopped working on it when they gave me official API / discord access but this was working last I was working on it… [GitHub - 0m364/Bard: Python SDK/API for reverse engineered Google Bard](https://github.com/0m364/Bard)

---

<div class="post-metadata">

**Author:** ![bocchesegiacomo01](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/bocchesegiacomo01/32/7180_2.png) [@bocchesegiacomo01](https://community.openai.com/u/bocchesegiacomo01)\
**Post date:** [July 15, 2023, 7:05pm UTC](https://community.openai.com/t/feedback-please-make-a-code-interpreter-api/292165/24 "2023-07-15T19:05:32Z")

</div>

exactly! Let’s all put like and comment to get the attention of openai

---

<div class="post-metadata">

**Author:** ![onhate](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/onhate/32/48636_2.png) [@onhate](https://community.openai.com/u/onhate)\
**Post date:** [July 15, 2023, 8:05pm UTC](https://community.openai.com/t/feedback-please-make-a-code-interpreter-api/292165/25 "2023-07-15T20:05:03Z")

</div>

You don’t need OpenAI to create an API just for that if you can create a repl for yourself like langchain does with the python interpreter

see

```auto
https://python.langchain.com/docs/modules/agents/toolkits/python

```

---

<div class="post-metadata">

**Author:** ![landongarrison](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/landongarrison/32/268_2.png) [@landongarrison](https://community.openai.com/u/landongarrison)\
**Post date:** [July 15, 2023, 8:29pm UTC](https://community.openai.com/t/feedback-please-make-a-code-interpreter-api/292165/26 "2023-07-15T20:29:09Z")

</div>

Unpopular opinion, but I find Langchain a huge pain to work with. I find the results are hit-and-miss and the docs to be incredibly unclear. With the function calling API OpenAI has introduced, I almost bat 1000 for exactly what I want it to do.

---

<div class="post-metadata">

**Author:** ![weverton](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/weverton/32/217504_2.png) [@weverton](https://community.openai.com/u/weverton)\
**Post date:** [July 15, 2023, 9:14pm UTC](https://community.openai.com/t/feedback-please-make-a-code-interpreter-api/292165/27 "2023-07-15T21:14:46Z")

</div>

I think this is a good point, but it needs a lot of improvement when it comes to uploading files directly to the chat, I noticed that it is limited to a maximum of 300 lines per code

---

<div class="post-metadata">

**Author:** ![\_j](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/_j/32/766292_2.png) [@\_j](https://community.openai.com/u/_j)\
**Post date:** [July 15, 2023, 11:52pm UTC](https://community.openai.com/t/feedback-please-make-a-code-interpreter-api/292165/28 "2023-07-15T23:52:16Z")

</div>

> [@weverton](#):
>
> I noticed that it is limited to a maximum of 300 lines per code

The “it” that you are referring to is likely not the API, as one would discover from the topic “please make a code interpreter API”. You are likely talking about ChatGPT and even pasting text, ChatGPT that already has a _code interpreter_ mode available to some.

1530 lines of python code, 12229 tokens plus system prompt and instructions, analyzed by AI via API:

> The application is structured as a chatbot interface using the PySide2 library for the user interface. It consists of several classes and functions that work together to create the chatbot interface.
> 
> The main class is the `ChatbotApp` class, which is a subclass of `QMainWindow` and represents the main window of the application. It contains the UI elements such as the chat history area, input box, and various buttons for interacting with the chatbot.
> 
> The `ChatbotApp` class has functions for initializing the UI, handling user input, sending messages to the chatbot, and updating the chat history. It also includes functions for managing the chat history, such as adding, editing, and deleting messages.
> 
> Other classes include `JPushButton`, which is a subclass of `QPushButton` with custom styling and functionality, `AutoTextEdit`, which is a subclass of `QPlainTextEdit` with additional features for handling user input, and `MessageText`, which is a subclass of `QTextEdit` for displaying chat messages.
> 
> There are also utility classes such as `CustomVBoxLayout` and `CustomSplitterHandle` that provide custom layouts and handle resizing of UI elements.
> 
> The application uses signals and slots to handle user interactions and update the UI in response to events. It also includes error handling for API requests and provides options for changing the AI model used by the chatbot.
> 
> Overall, the application is designed to provide a user-friendly chatbot interface with features such as message editing, role switching, and customizable AI models.

(The analysis does miss mention of features and methods, and also isn’t exactly a “describe the structure” type instruction as requested.)

The point of “code interpreter” is to allow the AI to write and execute its own code, to provide calculated answers and output beyond the ability of the AI language model intelligence. Or “keep rewriting and testing this function until it returns the right value” as one possible case.

And the point of similar function via API - which can be done with your own code now - is to extend that to your own pay-per-use chatbot without Alzheimer’s.

In ChatGPT with CI, you can actually upload your own code or class to be executed by the AI to the virtual environment datastore via UI, but the output returned must be in the function format the AI-written code shim can understand. Or it can ask for the whole file to be printed within the python environment for its own analysis.

---

<div class="post-metadata">

**Author:** ![AIdeveloper](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/aideveloper/32/134776_2.png) [@AIdeveloper](https://community.openai.com/u/AIdeveloper)\
**Post date:** [July 16, 2023, 3:32am UTC](https://community.openai.com/t/feedback-please-make-a-code-interpreter-api/292165/29 "2023-07-16T03:32:12Z")

</div>

> [@landongarrison](#):
>
> Code interpreter is just a plugin at the end of the day

I think that is partially true. Yes, indeed, it is a plugin, but perhaps based on a fine-tuned model that is not publicly available.

API is a vague word. It can be huge or small. I think a very small API would be very useful. Three things would be on my wish list:

1. Uploading and downloading files
2. Using the existing or similar ChatGPT API on the Code Interpreter
3. Allowing the Code Interpreter to interact with other plugins.

All those things should be pretty easy, technically. We can already upload/download the files including code by hand. Well, it will not run your uploaded code directly, but it will generate the equivalent code and run it.

Since it is a plugin, it should be able to route prompts to other plugins when necessary.

OpenAI states “Disabling internet access limits the functionality of our code sandbox, but we believe it’s the right initial tradeoff. Third-party plugins were designed as a safety-first method of connecting our models to the outside world.” But, enabling internet access for data only, not code, should be safe enough, shouldn’t it?

---

<div class="post-metadata">

**Author:** ![mmibrahim](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/mmibrahim/32/170991_2.png) [@mmibrahim](https://community.openai.com/u/mmibrahim)\
**Post date:** [July 16, 2023, 9:54pm UTC](https://community.openai.com/t/feedback-please-make-a-code-interpreter-api/292165/30 "2023-07-16T21:54:59Z")

</div>

That’s not unpopular at all, I think that more and more people are starting to realize what you’ve stated exactly, that Langchain is adds an unnecessary layer of complexity that adds close to zero value.

---

<div class="post-metadata">

**Author:** ![anon22939549](https://avatars.discourse-cdn.com/v4/letter/a/f14d63/32.png) [@anon22939549](https://community.openai.com/u/anon22939549)\
**Post date:** [July 17, 2023, 3:37am UTC](https://community.openai.com/t/feedback-please-make-a-code-interpreter-api/292165/31 "2023-07-17T03:37:40Z")

</div>

> [@mmibrahim](#):
>
> Langchain is adds an unnecessary layer of complexity that adds close to zero value.

I understand your point of view about LangChain. It’s true that LLMs and the ecosystems around them have grown tremendously this year, and that many of the capabilities LangChain initially enabled are less necessary now. However, I think it’s important to remember that LangChain was a groundbreaking project that made advanced LLM techniques accessible to thousands of people. It was a major step forward in the development of natural language processing, and it paved the way for many of the advances we’re seeing today.

I also think it’s important to consider the use cases for LangChain. Even though LLMs have improved significantly in the past 6 months, there are still many situations where LangChain can be a valuable tool. For example, LangChain can be used to:

- Build applications that use multiple LLMs.
- Create applications that require a high degree of customization.
- Integrate LLMs with external data sources.
- Build applications that are robust and scalable.

Of course, whether or not LangChain is easy enough to implement or worth the effort to do so is certainly debatable. However, I believe that LangChain still has a lot to offer, and I’m excited to see how it’s used in the future.

---

<div class="post-metadata">

**Author:** ![huangyining1987](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/huangyining1987/32/129266_2.png) [@huangyining1987](https://community.openai.com/u/huangyining1987)\
**Post date:** [July 17, 2023, 4:06am UTC](https://community.openai.com/t/feedback-please-make-a-code-interpreter-api/292165/32 "2023-07-17T04:06:01Z")

</div>

definitely agree the upgrade to API of code interpreter

---

<div class="post-metadata">

**Author:** ![ddrechsler](https://avatars.discourse-cdn.com/v4/letter/d/da6949/32.png) [@ddrechsler](https://community.openai.com/u/ddrechsler)\
**Post date:** [July 18, 2023, 1:37am UTC](https://community.openai.com/t/feedback-please-make-a-code-interpreter-api/292165/33 "2023-07-18T01:37:06Z")

</div>

Yes, I would love access to code interpreter via API. Be great to allow users to upload an excel file and ask question about it and generate graphs etc.

---

<div class="post-metadata">

**Author:** ![landongarrison](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/landongarrison/32/268_2.png) [@landongarrison](https://community.openai.com/u/landongarrison)\
**Post date:** [July 19, 2023, 3:42pm UTC](https://community.openai.com/t/feedback-please-make-a-code-interpreter-api/292165/34 "2023-07-19T15:42:17Z")

</div>

Isn’t this literally the concept of an API 😉

---

<div class="post-metadata">

**Author:** ![pgalko](https://avatars.discourse-cdn.com/v4/letter/p/71c47a/32.png) [@pgalko](https://community.openai.com/u/pgalko)\
**Post date:** [July 20, 2023, 1:03am UTC](https://community.openai.com/t/feedback-please-make-a-code-interpreter-api/292165/35 "2023-07-20T01:03:41Z")

</div>

I have been tinkering with something similar [GitHub - pgalko/BambooAI: A lightweight library that leverages Language Models (LLMs) to enable natural language interactions, allowing you to source and converse with data.](https://github.com/pgalko/bambooai)  
Very alpha at the moment, but the initial results are encouraging. Runs and executes locally with access to internet

---

<div class="post-metadata">

**Author:** ![srvshrma](https://avatars.discourse-cdn.com/v4/letter/s/6f9a4e/32.png) [@srvshrma](https://community.openai.com/u/srvshrma)\
**Post date:** [July 27, 2023, 1:10am UTC](https://community.openai.com/t/feedback-please-make-a-code-interpreter-api/292165/36 "2023-07-27T01:10:54Z")

</div>

just brainstorming but what if the code sandbox was on the customer side? Via something like Docker containers.

---

<div class="post-metadata">

**Author:** ![anon22939549](https://avatars.discourse-cdn.com/v4/letter/a/f14d63/32.png) [@anon22939549](https://community.openai.com/u/anon22939549)\
**Post date:** [July 27, 2023, 2:25am UTC](https://community.openai.com/t/feedback-please-make-a-code-interpreter-api/292165/37 "2023-07-27T02:25:40Z")

</div>

1. That is a great idea. It’s also something you can already implement pretty much on your own if you were inclined.
2. I think OpenAI would be at least _somewhat_ reluctant to facilitate that. There’s a not insubstantial risk in allowing the AI the ability to run code in the wild. With a cloud sandbox they at least can ensure it’s locked down and can’t hurt anything.

Of course (1) is a great counter-argument to (2), but I think lowering the barrier to entry too much creates the potential for a PR nightmare for OpenAI through misuse or abuse.

But, who knows?

Honestly, I think a _great_ intermediary step would be the ability to link it with an Azure Notebook. (I’d prefer Google Colab but, you know, Microsoft…)

But, sincerely, a great idea! Also, it reduces computational loads for OpenAI, so win-win?

---

<div class="post-metadata">

**Author:** ![srvshrma](https://avatars.discourse-cdn.com/v4/letter/s/6f9a4e/32.png) [@srvshrma](https://community.openai.com/u/srvshrma)\
**Post date:** [July 27, 2023, 3:38am UTC](https://community.openai.com/t/feedback-please-make-a-code-interpreter-api/292165/38 "2023-07-27T03:38:53Z")

</div>

like you said, openAI would probably be reluctant to have sandbox that they don’t control.

With cloud providers, OpenAI can scale up on sandboxes on demand so they can just price the code interpreter API to reflect their cost.

Now for Open Source implementation of the code interpreter, docker like environment would absolutely make sense

---

<div class="post-metadata">

**Author:** ![eric43](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/eric43/32/146328_2.png) [@eric43](https://community.openai.com/u/eric43)\
**Post date:** [July 27, 2023, 3:56am UTC](https://community.openai.com/t/feedback-please-make-a-code-interpreter-api/292165/39 "2023-07-27T03:56:29Z")

</div>

I found some similar ideas:

- [GitHub - iamgreggarcia/codesherpa: A code interpreter and ChatGPT plugin](https://github.com/iamgreggarcia/codesherpa.git)
- [Code Interpreter API](https://blog.langchain.dev/code-interpreter-api/)

---

<div class="post-metadata">

**Author:** ![elco](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/elco/32/181046_2.png) [@elco](https://community.openai.com/u/elco)\
**Post date:** [August 14, 2023, 3:21pm UTC](https://community.openai.com/t/feedback-please-make-a-code-interpreter-api/292165/40 "2023-08-14T15:21:09Z")

</div>

Are you working at OpenAI?

Please tell us whether to wait for CI API release or build on top of unofficial solutions…

🙂

[Previous page](https://community.openai.com/t/feedback-please-make-a-code-interpreter-api/292165.md?page=1)

[Next page](https://community.openai.com/t/feedback-please-make-a-code-interpreter-api/292165.md?page=3)
