How to use ChatGPT Code Interpreter through API?

When this works "https://chat.openai.com/?model=gpt-4-code-interpreter"

this returns an error "there are no such model":

response = openai.Completion.create(engine="code-interpreter", # gpt-4-code-interpreter prompt=final_prompt,temperature=0,max_tokens=150,top_p=1.0,frequency_penalty=0.0,presence_penalty=0.0,stop=["#", ";"])
2

Best Answer


Yes, I was also exploring the APIs for code interpreter. Got to know aboutA) Julius and B) Odineye

Julius is advanced but it do not have APIOdinEye.xyz otherwise, gives API support and have a strong community that back its development. Currently it has feature to upload CSV and analyse the data. I got in touch with the co-founders and they are releasing shared workbench features in next release for development community to participate and contribute. Seems pretty interesting to me!!

API: https://docs.odineye.xyz/

As the error says, the Code Interpreter API doesn't exist as of today.

See the list of all OpenAI models in the official OpenAI documentation.

Also, there's a discussion on the official OpenAI forum.