feat: 支持非流式传输
This commit is contained in:
@@ -55,6 +55,7 @@ public class OpenApiService : ApplicationService
|
||||
}
|
||||
}
|
||||
|
||||
//是否使用流式传输
|
||||
if (input.Stream)
|
||||
{
|
||||
//ai网关代理httpcontext
|
||||
@@ -64,8 +65,9 @@ public class OpenApiService : ApplicationService
|
||||
}
|
||||
else
|
||||
{
|
||||
await _aiGateWayManager.CompleteChatForStatisticsAsync(_httpContextAccessor.HttpContext,input.Model, history, userId, null,
|
||||
cancellationToken);
|
||||
await _aiGateWayManager.CompleteChatForStatisticsAsync(_httpContextAccessor.HttpContext, input.Model,
|
||||
history, userId, null,
|
||||
cancellationToken);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user