feat: support ollama (close #112)

This commit is contained in:
CaIon
2024-03-12 02:36:39 +08:00
parent c3a01decd8
commit d53d3386e9
8 changed files with 117 additions and 4 deletions

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: