增加deepseek深度思考返回

This commit is contained in:
winkey
2025-04-01 11:51:24 +08:00
parent ae141a6591
commit d0a2eadc38
2 changed files with 5 additions and 1 deletions

View File

@@ -106,7 +106,8 @@ public class SSEEventSourceListener extends EventSourceListener {
}
Object content = completionResponse.getChoices().get(0).getDelta().getContent();
if(content == null){
return;
content = completionResponse.getChoices().get(0).getDelta().getReasoningContent();
if(content == null) return;
}
if(StringUtils.isEmpty(modelName)){
modelName = completionResponse.getModel();