Просмотр исходного кода

feat: 暂时禁用透传功能

CalciumIon 1 год назад
Родитель
Сommit
ed2ec69545
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      relay/channel/openai/adaptor.go

+ 1 - 1
relay/channel/openai/adaptor.go

@@ -102,7 +102,7 @@ func (a *Adaptor) ConvertRequest(c *gin.Context, info *relaycommon.RelayInfo, re
 	if request == nil {
 		return nil, errors.New("request is nil")
 	}
-	if info.ChannelType != common.ChannelTypeOpenAI && info.ChannelType != common.ChannelTypeAzure {
+	if info.ChannelType != common.ChannelTypeOpenAI {
 		request.StreamOptions = nil
 	}
 	if strings.HasPrefix(request.Model, "o1-") {