feat: 暂时禁用透传功能

This commit is contained in:
CalciumIon
2024-11-19 15:04:19 +08:00
parent 55f9a48fa3
commit 710c88cb26
2 changed files with 22 additions and 19 deletions
+1 -1
View File
@@ -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 {
if info.ChannelType != common.ChannelTypeOpenAI && info.ChannelType != common.ChannelTypeAzure {
request.StreamOptions = nil
}
if strings.HasPrefix(request.Model, "o1-") {