From a72205ffa74be38d8c2b1cc758f076cc7382fe13 Mon Sep 17 00:00:00 2001 From: liuhuapiaoyuan <278780765@qq.com> Date: Fri, 24 May 2024 19:36:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=BB=98=E8=AE=A4ARKOSE=E7=9A=84?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/config.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/config/config.go b/config/config.go index 1d93bfb..b016314 100644 --- a/config/config.go +++ b/config/config.go @@ -89,13 +89,14 @@ func init() { PlusModels.Append("gpt-4-plugins") PlusModels.Append("gpt-4-mobile") PlusModels.Append("gpt-4-gizmo") - arkoseProxyUrl := g.Cfg().MustGetWithEnv(ctx, "ARKOSE_PROXY_URL") - if !arkoseProxyUrl.IsEmpty() { - ARKOSE_PROXY_URL = arkoseProxyUrl.String() - } chatproxy := g.Cfg().MustGetWithEnv(ctx, "CHATPROXY").String() if chatproxy != "" { CHATPROXY = chatproxy + ARKOSE_PROXY_URL = chatproxy + } + arkoseProxyUrl := g.Cfg().MustGetWithEnv(ctx, "ARKOSE_PROXY_URL") + if !arkoseProxyUrl.IsEmpty() { + ARKOSE_PROXY_URL = arkoseProxyUrl.String() } g.Log().Info(ctx, "CHATPROXY:", CHATPROXY) assetPrefix := g.Cfg().MustGetWithEnv(ctx, "ASSET_PREFIX").String()