Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
close #133
这个问题, 虽然现在关闭了, 但解释的并不清楚, 而且没有解决两个问题:
var modelName string
modelList := adaptor.GetModelList()
if len(modelList) != 0 {
modelName = modelList[0]
}
if modelName == "" || !strings.Contains(channel.Models, modelName) {
modelNames := strings.Split(channel.Models, ",")
if len(modelNames) > 0 {
modelName = modelNames[0]
}
}
request := buildTestRequest()
request.Model = modelName
meta.OriginModelName, meta.ActualModelName = modelName, strings.Split(channel.Models, ",")[0]
这次我改了前端, 使得以后使用Azure模型, 会更清晰的知道应该怎么填写.
同时还有一个缺点就是在使用Azure渠道时, 因为Azure自身特性, 和gpt不同, 只能部署一个模型的限制, 应该在前端限制一下, 让用户只能选择一个模型, 但我不会, 不太会前端.
希望有人改动一下, 不改动也可以, 我觉得应该知道自己一个模型对应一个名称, 不会选所有的.
我已确认该 PR 已自测通过,相关截图如下:
(此处放上测试通过的截图,如果不涉及前端改动或从 UI 上无法看出,请放终端启动成功的截图)
这两个都是一模一样的配置, 而且修改了一些字, 使得更容易设置‘渠道’: