Skip to content

Commit

Permalink
fix: fix balance query for siliconflow (#1960)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gk0Wk authored Dec 22, 2024
1 parent 49ffb1c commit cb9d0a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controller/channel-billing.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ func updateChannelSiliconFlowBalance(channel *model.Channel) (float64, error) {
if response.Code != 20000 {
return 0, fmt.Errorf("code: %d, message: %s", response.Code, response.Message)
}
balance, err := strconv.ParseFloat(response.Data.Balance, 64)
balance, err := strconv.ParseFloat(response.Data.TotalBalance, 64)
if err != nil {
return 0, err
}
Expand Down

0 comments on commit cb9d0a7

Please sign in to comment.