From 38faf0bb1b78a9ef06939d1245a89ce7a5a27125 Mon Sep 17 00:00:00 2001 From: wozulong <> Date: Fri, 17 May 2024 15:19:32 +0800 Subject: [PATCH 1/2] rename config file Signed-off-by: wozulong <> --- .gitignore | 1 + config.json => config.json.example | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) rename config.json => config.json.example (93%) diff --git a/.gitignore b/.gitignore index 48180b1..0ccc9e2 100644 --- a/.gitignore +++ b/.gitignore @@ -29,6 +29,7 @@ Thumbs.db *.key *.log bin/ +config.json # Develop tools .vscode/ diff --git a/config.json b/config.json.example similarity index 93% rename from config.json rename to config.json.example index 27a4db5..0d315b1 100644 --- a/config.json +++ b/config.json.example @@ -6,7 +6,7 @@ "codex_api_key": "sk-xxx", "codex_api_organization": "", "codex_api_project": "", - "codex_max_tokens": 4093, + "codex_max_tokens": 2048, "chat_api_base": "https://api-proxy.oaipro.com/v1", "chat_api_key": "sk-xxx", "chat_api_organization": "", From ad0c436935af704234cc6c8e558a1a8e1f8cce2c Mon Sep 17 00:00:00 2001 From: machooo Date: Fri, 17 May 2024 15:28:39 +0800 Subject: [PATCH 2/2] =?UTF-8?q?dockerfile=E6=B7=BB=E5=8A=A0go=E4=BB=A3?= =?UTF-8?q?=E7=90=86,=E8=A7=A3=E5=86=B3=E6=8B=89=E5=8F=96=E4=B8=89?= =?UTF-8?q?=E6=96=B9=E5=8C=85=E7=9A=84=E5=BB=B6=E8=BF=9F=E9=97=AE=E9=A2=98?= =?UTF-8?q?=20(#14)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: nachuan --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) 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