Commit d6931d05 by JustSong

fix: fix not using proxy when update balance

parent a04afb22
...@@ -41,7 +41,9 @@ func updateChannelBalance(channel *model.Channel) (float64, error) { ...@@ -41,7 +41,9 @@ func updateChannelBalance(channel *model.Channel) (float64, error) {
baseURL := common.ChannelBaseURLs[channel.Type] baseURL := common.ChannelBaseURLs[channel.Type]
switch channel.Type { switch channel.Type {
case common.ChannelTypeOpenAI: case common.ChannelTypeOpenAI:
// do nothing if channel.BaseURL != "" {
baseURL = channel.BaseURL
}
case common.ChannelTypeAzure: case common.ChannelTypeAzure:
return 0, errors.New("尚未实现") return 0, errors.New("尚未实现")
case common.ChannelTypeCustom: case common.ChannelTypeCustom:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment