Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Calcium-Ion committed Feb 28, 2025
1 parent d6fd50e commit 1529504
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion relay/helper/price.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ func ModelPriceHelper(c *gin.Context, info *relaycommon.RelayInfo, promptTokens
if maxTokens != 0 {
preConsumedTokens = promptTokens + maxTokens
}
modelRatio, success := common.GetModelRatio(info.OriginModelName)
var success bool
modelRatio, success = common.GetModelRatio(info.OriginModelName)
if !success {
return PriceData{}, fmt.Errorf("model %s ratio not found", info.OriginModelName)
}
Expand Down

0 comments on commit 1529504

Please # to comment.