diff --git a/.gitignore b/.gitignore index a7fc7d3..c9c30ee 100644 --- a/.gitignore +++ b/.gitignore @@ -29,6 +29,7 @@ Thumbs.db *.key *.log bin/ +config.json # Develop tools .vscode/ diff --git a/Dockerfile b/Dockerfile index c92048b..61b1588 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,6 +4,8 @@ WORKDIR /app ADD . . +ENV GOPROXY https://goproxy.cn + RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o override FROM alpine:latest diff --git a/config.json b/config.json.example similarity index 60% rename from config.json rename to config.json.example index fb08ead..0d315b1 100644 --- a/config.json +++ b/config.json.example @@ -2,12 +2,11 @@ "bind": "127.0.0.1:8181", "proxy_url": "", "timeout": 600, - "codex_api_base": "https://api.oaipro.com/v1/completions", - "codex_api_key": "sk-4VTExcjhhlexSBWXCfDd15A102094580B9616062E0Cb6319", + "codex_api_base": "https://api-proxy.oaipro.com/v1", + "codex_api_key": "sk-xxx", "codex_api_organization": "", "codex_api_project": "", - "codex_max_tokens": 4093, - "codex_model_default":"gpt-3.5-turbo-instruct", + "codex_max_tokens": 2048, "chat_api_base": "https://api-proxy.oaipro.com/v1", "chat_api_key": "sk-xxx", "chat_api_organization": "",