Skip to content

Commit

Permalink
fix: use modelMap when testing a channel (#1855)
Browse files Browse the repository at this point in the history
Co-authored-by: oliang <oliang@tencent.com>
  • Loading branch information
liangjs and oliang authored Oct 27, 2024
1 parent a4d6e7a commit 3716e1b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions controller/channel-test.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ func testChannel(channel *model.Channel, request *relaymodel.GeneralOpenAIReques
if len(modelNames) > 0 {
modelName = modelNames[0]
}
if modelMap != nil && modelMap[modelName] != "" {
modelName = modelMap[modelName]
}
}
if modelMap != nil && modelMap[modelName] != "" {
modelName = modelMap[modelName]
}
meta.OriginModelName, meta.ActualModelName = request.Model, modelName
request.Model = modelName
Expand Down

0 comments on commit 3716e1b

Please sign in to comment.