feat: 完善stream_options

This commit is contained in:
CalciumIon
2024-07-08 02:04:21 +08:00
parent df6502733c
commit 52debe7572

View File

@@ -67,7 +67,7 @@ func GenRelayInfo(c *gin.Context) *RelayInfo {
if info.ChannelType == common.ChannelTypeAzure {
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
}
return info