# Add gitpython and downloadable models to Code Interpreter?

**URL:** <https://community.openai.com/t/add-gitpython-and-downloadable-models-to-code-interpreter/307838>\
**Category:** ChatGPT\
**Tags:** chatgpt, code-interpreter, feature-request\
**Created:** [July 24, 2023, 2:33pm UTC](https://community.openai.com/t/add-gitpython-and-downloadable-models-to-code-interpreter/307838 "2023-07-24T14:33:06Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![brightj](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/brightj/32/11130_2.png) [@brightj](https://community.openai.com/u/brightj)\
**Post date:** [July 24, 2023, 2:33pm UTC](https://community.openai.com/t/add-gitpython-and-downloadable-models-to-code-interpreter/307838/1 "2023-07-24T14:33:06Z")

</div>

Hi OpenAI:

Can you add gitpython to the list of installed packages in the Code Interpreter sandbox? I want to be able to upload a repo and have the AI read through the diffs, etc.

Also, it tried to use SpaCy and NLTK libraries, which are installed, but don’t actually work because it has no internet access and can’t download the models, so you should pre-download those and install them in the virtual environment, too.

---

<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 24, 2023, 6:21pm UTC](https://community.openai.com/t/add-gitpython-and-downloadable-models-to-code-interpreter/307838/2 "2023-07-24T18:21:23Z")

</div>

Code Interpreter (CI) does not (as of yet) have access to the live internet. So, even if you had access to the packages you want, the model would not be able to make use of them.

_Currently_, the only way to give data/files to CI is to use the upload button. You _can_ upload an archive file (zip, rar, 7z, tar, etc) and CI will unpack it in your sandbox, so if you get all of the files of interest from the repository you want to analyze, that might be a possibility.

You can get the diff for each individual commit by appending `.diff` to the commit URL.

Using the latest commit (at the time of this writing) for OpenAI evals as an example,

[https://github.com/openai/evals/commit/305b237cdb3884c7ddb6a5d12cb184a83551fcba](https://github.com/openai/evals/commit/305b237cdb3884c7ddb6a5d12cb184a83551fcba)

becomes,

[https://github.com/openai/evals/commit/305b237cdb3884c7ddb6a5d12cb184a83551fcba.diff](https://github.com/openai/evals/commit/305b237cdb3884c7ddb6a5d12cb184a83551fcba.diff)

---

<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 24, 2023, 6:30pm UTC](https://community.openai.com/t/add-gitpython-and-downloadable-models-to-code-interpreter/307838/3 "2023-07-24T18:30:29Z")

</div>

> [@brightj](#):
>
> SpaCy

translation:  
“I want to run a language model within my python within my language model”

The AI language libraries are probably there for their utility functions.

Imagine if they added tiktoken on it - and without it needing to hit the internet for dictionaries. “How many tokens of conversation history passed this turn. Then to fool the history mangler, summarize everything we’ve talked about.”

Maybe someone from OpenAI could stroll across this. It seems they are focused more on the next tweaks for ChatGPT than any API dev.

---

<div class="post-metadata">

**Author:** ![brightj](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/brightj/32/11130_2.png) [@brightj](https://community.openai.com/u/brightj)\
**Post date:** [July 24, 2023, 6:46pm UTC](https://community.openai.com/t/add-gitpython-and-downloadable-models-to-code-interpreter/307838/4 "2023-07-24T18:46:53Z")

</div>

> [@anon22939549](#):
>
> So, even if you had access to the packages you want, the model would not be able to make use of them.

Yes, so I’m asking for the packages to be pre-downloaded into the environment, so it can actually use those libraries.

The libraries are already installed in the environment, but can’t actually work without internet access.

> [@anon22939549](#):
>
> so if you get all of the files of interest from the repository you want to analyze, that might be a possibility.

Yes, I’ve done that, uploading the `en_core_web_sm` files inside a .zip, but it wasn’t able to use them. Maybe it could have if it tried harder, I don’t know.

> [@anon22939549](#):
>
> You can get the diff for each individual commit by appending `.diff` to the commit URL.

I’m talking about a local git repo. Yes, I could manually generate diff files for each commit, but it would be simpler if ChatGPT could read the diffs from the repo itself.

> [@\_j](#):
>
> “I want to run a language model within my python within my language model”

I guess, but not _large_ language models.

`en_core_web_sm` is 13 MB, for instance.

> [@\_j](#):
>
> Imagine if they added tiktoken on it - and without it needing to hit the internet for dictionaries.

Yes, that’s what I’m asking for. If it’s helping me write code for accessing the OpenAI API, it should be able to run tiktoken locally to try out that code without needing internet access.

---

<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 24, 2023, 8:25pm UTC](https://community.openai.com/t/add-gitpython-and-downloadable-models-to-code-interpreter/307838/5 "2023-07-24T20:25:52Z")

</div>

Apologies, from your first post in this topic I mistakenly thought you wanted to be able to simply point CI at an online repo (e.g. github) and have it pull and interpret the diffs.

I believe I now understand what it is you’re hoping to achieve.

With respect to the SpaCy and NLTK libraries, I would guess (at least) one reason why the pre-trained models are not pre-downloaded and installed is because of the size requirements in having them in _everyone’s_ virtual environments—but maybe that’s not as large a concern as I am imagining. I’ve not used either (I only “dabble” in python) so I could be entirely off-base there.

> [@brightj](#):
>
> Yes, I could manually generate diff files for each commit, but it would be simpler if ChatGPT could read the diffs from the repo itself.

I’m not entirely sure why you think this would be _simpler_. I sure it’s _easier_ for you, but it is perhaps asking more of the model than you should?

I always find I get better results when I go out of my way to meet the model where it is. In this case I would expect that to be generating the diff files myself in a way which is easy for the model to extract the information it needs from the diffs to answer any questions I would have.

Regardless, with respect to your original post, this isn’t the proper venue in which to reach anyone at OpenAI with this type of decision making authority. Your best bets would be to provide in-chat feedback and submit a suggestion via [help.openai.com](http://help.openai.com).

Lastly, I’m changing the category of this topic to `ChatGPT` since it relates to using [chat.openai.com](http://chat.openai.com) and not the development of a plugin for ChatGPT.

---

<div class="post-metadata">

**Author:** ![brightj](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/brightj/32/11130_2.png) [@brightj](https://community.openai.com/u/brightj)\
**Post date:** [July 24, 2023, 8:40pm UTC](https://community.openai.com/t/add-gitpython-and-downloadable-models-to-code-interpreter/307838/6 "2023-07-24T20:40:10Z")

</div>

> [@anon22939549](#):
>
> I mistakenly thought you wanted to be able to simply point CI at an online repo (e.g. github) and have it pull and interpret the diffs.

Well that would be nice, too. 😃 But no I just meant uploading a zip of a git repo.

> [@anon22939549](#):
>
> is because of the size requirements in having them in _everyone’s_ virtual environments

I would imagine that such files are actually only stored once and reflinked/hardlinked across all the virtual machines? I don’t know much about the implementation of such things, though.

> [@anon22939549](#):
>
> I sure it’s _easier_ for you, but it is perhaps asking more of the model than you should?

ChatGPT initially tried to do it of its own accord, but then realized gitpython wasn’t installed, so I don’t think it’s difficult for it to use.

> [@anon22939549](#):
>
> Your best bets would be to provide in-chat feedback and submit a suggestion via [help.openai.com](http://help.openai.com).

OK

---

<div class="post-metadata">

**Author:** ![EricGT](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/ericgt/32/20571_2.png) [@EricGT](https://community.openai.com/u/EricGT)\
**Post date:** [December 21, 2023, 8:07am UTC](https://community.openai.com/t/add-gitpython-and-downloadable-models-to-code-interpreter/307838/7 "2023-12-21T08:07:00Z")

</div>

Closed on December 21, 2023, 8:07am UTC


