diff --git a/api/config.sample.toml b/api/config.sample.toml index 12f0de40..7f3c629e 100644 --- a/api/config.sample.toml +++ b/api/config.sample.toml @@ -46,7 +46,7 @@ WeChatBot = false Active = "local" # 默认使用本地文件存储引擎 [OSS.Local] BasePath = "./static/upload" # 本地文件上传根路径 - BaseURL = "http://localhost:5678/static/upload" # 本地上传文件根 URL 如果是线上,则直接设置为 /static/upload 即可 + BaseURL = "/static/upload" # 本地上传文件根 URL 如果是线上,则直接设置为 /static/upload 即可 [OSS.Minio] Endpoint = "" # 如 172.22.11.200:9000 AccessKey = "" # 自己去 Minio 控制台去创建一个 Access Key diff --git a/api/handler/chatimpl/chat_handler.go b/api/handler/chatimpl/chat_handler.go index d919c63d..90effac7 100644 --- a/api/handler/chatimpl/chat_handler.go +++ b/api/handler/chatimpl/chat_handler.go @@ -507,7 +507,7 @@ func (h *ChatHandler) doRequest(ctx context.Context, req types.ApiRequest, platf } else { client = http.DefaultClient } - logger.Debugf("Sending %s request, ApiURL:%s, Password:%s, PROXY: %s, Model: %s", platform, apiURL, apiKey.Value, proxyURL, req.Model) + logger.Debugf("Sending %s request, ApiURL:%s, API KEY:%s, PROXY: %s, Model: %s", platform, apiURL, apiKey.Value, proxyURL, req.Model) switch platform { case types.Azure: request.Header.Set("api-key", apiKey.Value) diff --git a/deploy/conf/config.toml b/deploy/conf/config.toml index 12f0de40..7f3c629e 100644 --- a/deploy/conf/config.toml +++ b/deploy/conf/config.toml @@ -46,7 +46,7 @@ WeChatBot = false Active = "local" # 默认使用本地文件存储引擎 [OSS.Local] BasePath = "./static/upload" # 本地文件上传根路径 - BaseURL = "http://localhost:5678/static/upload" # 本地上传文件根 URL 如果是线上,则直接设置为 /static/upload 即可 + BaseURL = "/static/upload" # 本地上传文件根 URL 如果是线上,则直接设置为 /static/upload 即可 [OSS.Minio] Endpoint = "" # 如 172.22.11.200:9000 AccessKey = "" # 自己去 Minio 控制台去创建一个 Access Key diff --git a/web/src/views/Login.vue b/web/src/views/Login.vue index af6f12a9..296664b5 100644 --- a/web/src/views/Login.vue +++ b/web/src/views/Login.vue @@ -9,7 +9,8 @@
{{ title }}
- +