feat: support ollama (close #112)

This commit is contained in:
CaIon
2024-03-12 02:36:39 +08:00
parent 9cd256fc7f
commit c1537aad3c
8 changed files with 117 additions and 4 deletions
-2
View File
@@ -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: