Skip to content

Commit

Permalink
fix: prompt user the feat is not implemented (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
songquanpeng committed Jun 3, 2023
1 parent 2847a08 commit 1e1c6a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions controller/channel-billing.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,14 @@ type OpenAIUsageResponse struct {
func updateChannelBalance(channel *model.Channel) (float64, error) {
baseURL := common.ChannelBaseURLs[channel.Type]
switch channel.Type {
case common.ChannelTypeOpenAI:
// do nothing
case common.ChannelTypeAzure:
return 0, errors.New("尚未实现")
case common.ChannelTypeCustom:
baseURL = channel.BaseURL
default:
return 0, errors.New("尚未实现")
}
url := fmt.Sprintf("%s/v1/dashboard/billing/subscription", baseURL)

Expand Down

0 comments on commit 1e1c6a8

Please sign in to comment.