Procházet zdrojové kódy

feat: 完善stream_options

CalciumIon před 1 rokem
rodič
revize
52debe7572
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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 {
 		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