feat: support Ollama (#168)

This commit is contained in:
Buer
2024-04-24 16:59:58 +08:00
committed by GitHub
parent b9c9035f2a
commit 763c8883da
14 changed files with 481 additions and 29 deletions

View File

@@ -176,6 +176,7 @@ const (
ChannelTypeCohere = 36
ChannelTypeStabilityAI = 37
ChannelTypeCoze = 38
ChannelTypeOllama = 39
)
var ChannelBaseURLs = []string{
@@ -218,6 +219,7 @@ var ChannelBaseURLs = []string{
"https://api.cohere.ai/v1", //36
"https://api.stability.ai/v2beta", //37
"https://api.coze.com/open_api", //38
"", //39
}
const (