feat: support cloudflare worker ai
This commit is contained in:
1 parent
1086340e14
commit
fe4665fd99
15 files changed
+296
-28
No files matched your search
@@ -68,7 +68,8 @@ func GenRelayInfo(c *gin.Context) *RelayInfo {
|
||||
info.ApiVersion = GetAPIVersion(c)
|
||||
}
|
||||
if info.ChannelType == common.ChannelTypeOpenAI || info.ChannelType == common.ChannelTypeAnthropic ||
|
||||
info.ChannelType == common.ChannelTypeAws || info.ChannelType == common.ChannelTypeGemini {
|
||||
info.ChannelType == common.ChannelTypeAws || info.ChannelType == common.ChannelTypeGemini ||
|
||||
info.ChannelType == common.ChannelCloudflare {
|
||||
info.SupportStreamOptions = true
|
||||
}
|
||||
return info
|
||||
|
||||
Reference in new issue
Block a user