Commit 3ad6a894 by CalciumIon

feat: 完善stream_options

parent f2a25102
...@@ -67,7 +67,7 @@ func GenRelayInfo(c *gin.Context) *RelayInfo { ...@@ -67,7 +67,7 @@ func GenRelayInfo(c *gin.Context) *RelayInfo {
if info.ChannelType == common.ChannelTypeAzure { if info.ChannelType == common.ChannelTypeAzure {
info.ApiVersion = GetAPIVersion(c) info.ApiVersion = GetAPIVersion(c)
} }
if info.ChannelType == common.ChannelTypeOpenAI { if info.ChannelType == common.ChannelTypeOpenAI || info.ChannelType == common.ChannelTypeAnthropic || info.ChannelType == common.ChannelTypeAws {
info.SupportStreamOptions = true info.SupportStreamOptions = true
} }
return info return info
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment