feat: support ollama (close #112)
This commit is contained in:
1 parent
9cd256fc7f
commit
c1537aad3c
8 files changed
+117
-4
No files matched your search
@@ -214,8 +214,6 @@ func updateChannelBalance(channel *model.Channel) (float64, error) {
|
||||
return 0, errors.New("尚未实现")
|
||||
case common.ChannelTypeCustom:
|
||||
baseURL = channel.GetBaseURL()
|
||||
case common.ChannelTypeCloseAI:
|
||||
return updateChannelCloseAIBalance(channel)
|
||||
case common.ChannelTypeOpenAISB:
|
||||
return updateChannelOpenAISBBalance(channel)
|
||||
case common.ChannelTypeAIProxy:
|
||||
|
||||
Reference in new issue
Block a user