Sign inSign up

zh3305/localcodeinterpreter

By zh3305

•Updated almost 3 years ago

A local implementation of OpenAI's ChatGPT Code Interpreter.

Image
0

321

zh3305/localcodeinterpreter repository overview

⁠Directly run
docker run -it --rm -e OPENAI_API_KEY=youOpenApiKey -p 7860:7860 zh3305/localcodeinterpreter:latest
⁠Environment variables
⁠OPENAI_API_KEY

API key

⁠INTERPETER_API_TYPE

Default is open_ai

⁠INTERPETER_API_BASE

API access address, default is https://api.openai.com/v1, can use reverse proxy address, such as the proxy interface address provided by ChatGPT Next Web https://chatgpt2.nextweb.fun/api/proxy/v1

⁠INTERPETER_API_VERSION

If you use Azure OpenAI service, set it to 2023-07-01-preview, other API versions do not support function calls.

⁠http_proxy, https_proxy

Proxy server address, can set the accessed proxy server. For example: -e http_proxy=http://192.168.1.10:11992⁠ http proxy address -e https_proxy=http://192.168.1.10:11992⁠ https proxy address

⁠Manually build Docker image
docker build --pull --rm -f "Dockerfile" -t localcodeinterpreter:latest "."

Tag summary

Content type

Image

Digest

sha256:76deca58f…

Size

593.7 MB

Last updated

almost 3 years ago

docker pull zh3305/localcodeinterpreter