diff --git a/README.en.md b/README.en.md index db96a858..8e70fd01 100644 --- a/README.en.md +++ b/README.en.md @@ -106,7 +106,7 @@ server{ client_max_body_size 64m; proxy_http_version 1.1; proxy_pass http://localhost:3000; # Modify your port accordingly - proxy_set_header Host $host; + # proxy_set_header Host $host; proxy_set_header X-Forwarded-For $remote_addr; proxy_cache_bypass $http_upgrade; proxy_set_header Accept-Encoding gzip; diff --git a/README.ja.md b/README.ja.md index c15915ec..688897c7 100644 --- a/README.ja.md +++ b/README.ja.md @@ -106,7 +106,7 @@ server{ client_max_body_size 64m; proxy_http_version 1.1; proxy_pass http://localhost:3000; # それに応じてポートを変更 - proxy_set_header Host $host; + # proxy_set_header Host $host; proxy_set_header X-Forwarded-For $remote_addr; proxy_cache_bypass $http_upgrade; proxy_set_header Accept-Encoding gzip; diff --git a/README.md b/README.md index b5168264..ad07610e 100644 --- a/README.md +++ b/README.md @@ -149,7 +149,7 @@ server{ client_max_body_size 64m; proxy_http_version 1.1; proxy_pass http://localhost:3000; # 请根据实际情况修改你的端口 - proxy_set_header Host $host; + # proxy_set_header Host $host; proxy_set_header X-Forwarded-For $remote_addr; proxy_cache_bypass $http_upgrade; proxy_set_header Accept-Encoding gzip; diff --git a/controller/channel-test.go b/controller/channel-test.go old mode 100644 new mode 100755 index b8c41819..9e5fdb6c --- a/controller/channel-test.go +++ b/controller/channel-test.go @@ -85,7 +85,7 @@ func testChannel(channel *model.Channel) (err error, openaiErr *relaymodel.Error } request := buildTestRequest() request.Model = modelName - meta.OriginModelName, meta.ActualModelName = modelName, modelName + meta.OriginModelName, meta.ActualModelName = modelName, strings.Split(channel.Models, ",")[0] convertedRequest, err := adaptor.ConvertRequest(c, relaymode.ChatCompletions, request) if err != nil { return err, nil diff --git a/i18n/en.json b/i18n/en.json index b7f1bd3e..651ba60e 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -509,8 +509,8 @@ "请输入用户名": "Please enter username", "请输入显示名称": "Please enter display name", "请输入密码": "Please enter password", - "模型部署名称必须和模型名称保持一致": "The model deployment name must be consistent with the model name", - ",因为 One API 会把请求体中的 model": ", because One API will take the model in the request body", + "Azure‘部署名’, 要和你的‘模型名称’、‘模型版本’保持一致": "Azure ‘deployment name’ must be consistent with your ‘model name’ and ‘model version’", + ". 例如模型名称:‘gpt-35-turbo’, 版本:‘0613’, 那么部署名就叫: ‘gpt-35-turbo-0613’.": ". For example, model name: ‘gpt-35-turbo’, version: ‘0613’, then the deployment name is: ‘gpt-35-turbo-0613’.", "请输入 AZURE_OPENAI_ENDPOINT": "Please enter AZURE_OPENAI_ENDPOINT", "请输入自定义渠道的 Base URL": "Please enter the Base URL of the custom channel", "Homepage URL 填": "Fill in the Homepage URL", diff --git a/web/air/src/pages/Channel/EditChannel.js b/web/air/src/pages/Channel/EditChannel.js index 73fd2da2..2cb54b2c 100644 --- a/web/air/src/pages/Channel/EditChannel.js +++ b/web/air/src/pages/Channel/EditChannel.js @@ -321,10 +321,7 @@ const EditChannel = (props) => {
- 注意,模型部署名称必须和模型名称保持一致,因为 One API 会把请求体中的 - model - 参数替换为你的部署名称(模型名称中的点会被剔除),图片演示。 + 注意,Azure‘部署名’, 要和你的‘模型名称’、‘模型版本’保持一致. 例如模型名称:‘gpt-35-turbo’, 版本:‘0613’, 那么部署名就叫: ‘gpt-35-turbo-0613’. }> diff --git a/web/default/src/pages/Channel/EditChannel.js b/web/default/src/pages/Channel/EditChannel.js index fb80a726..d719d15a 100644 --- a/web/default/src/pages/Channel/EditChannel.js +++ b/web/default/src/pages/Channel/EditChannel.js @@ -241,9 +241,7 @@ const EditChannel = () => { inputs.type === 3 && ( <> - 注意,模型部署名称必须和模型名称保持一致,因为 One API 会把请求体中的 model - 参数替换为你的部署名称(模型名称中的点会被剔除),图片演示。 + 注意,Azure‘部署名’, 要和你的‘模型名称’、‘模型版本’保持一致. 例如模型名称:‘gpt-35-turbo’, 版本:‘0613’, 那么部署名就叫: ‘gpt-35-turbo-0613’.