Browse Source

feat: 完善stream_options

CalciumIon 1 year ago
parent
commit
52debe7572
1 changed files with 1 additions and 1 deletions
  1. 1 1
      relay/common/relay_info.go

+ 1 - 1
relay/common/relay_info.go

@@ -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