feat: support cloudflare worker ai

This commit is contained in:
CalciumIon committed 2024-07-13 19:55:22 +08:00
1 parent 1086340e14
commit fe4665fd99
15 files changed
+296 -28

No files matched your search

+2 -2
View File
@@ -198,11 +198,11 @@ func SetupContextForSelectedChannel(c *gin.Context, channel *model.Channel, mode
c.Set("api_version", channel.Other)
case common.ChannelTypeXunfei:
c.Set("api_version", channel.Other)
//case common.ChannelTypeAIProxyLibrary:
// c.Set("library_id", channel.Other)
case common.ChannelTypeGemini:
c.Set("api_version", channel.Other)
case common.ChannelTypeAli:
c.Set("plugin", channel.Other)
case common.ChannelCloudflare:
c.Set("api_version", channel.Other)
}
}