mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-10-21 08:53:42 +08:00
✨ add channel proxy
This commit is contained in:
@@ -21,7 +21,7 @@ func (p *OpenaiSBProvider) Balance(channel *model.Channel) (float64, error) {
|
||||
|
||||
// 发送请求
|
||||
var response OpenAISBUsageResponse
|
||||
_, errWithCode := common.SendRequest(req, &response, false)
|
||||
_, errWithCode := common.SendRequest(req, &response, false, p.Channel.Proxy)
|
||||
if err != nil {
|
||||
return 0, errors.New(errWithCode.OpenAIError.Message)
|
||||
}
|
||||
|
Reference in New Issue
Block a user