Skip to content

Commit

Permalink
fix: 默认ARKOSE的配置
Browse files Browse the repository at this point in the history
  • Loading branch information
liuhuapiaoyuan committed May 24, 2024
1 parent 541ed35 commit a72205f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit a72205f

Please sign in to comment.