From e7e5a167676ca4c601ff8e340667841374603c51 Mon Sep 17 00:00:00 2001 From: nightcoffee Date: Sat, 15 Feb 2025 04:55:57 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20add=20=E7=81=AB=E5=B1=B1=E5=BC=95?= =?UTF-8?q?=E6=93=8E=20support=20stream=20options?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- relay/common/relay_info.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/relay/common/relay_info.go b/relay/common/relay_info.go index 4978f84f..e1e3916d 100644 --- a/relay/common/relay_info.go +++ b/relay/common/relay_info.go @@ -112,7 +112,8 @@ func GenRelayInfo(c *gin.Context) *RelayInfo { } if info.ChannelType == common.ChannelTypeOpenAI || info.ChannelType == common.ChannelTypeAnthropic || info.ChannelType == common.ChannelTypeAws || info.ChannelType == common.ChannelTypeGemini || - info.ChannelType == common.ChannelCloudflare || info.ChannelType == common.ChannelTypeAzure { + info.ChannelType == common.ChannelCloudflare || info.ChannelType == common.ChannelTypeAzure || + info.ChannelType == common.ChannelTypeVolcEngine { info.SupportStreamOptions = true } return info