|
@@ -127,6 +127,9 @@ public class OpenAIUtils {
|
|
|
// responseFormat.put("type", "json_object");
|
|
|
// String content = DeepSeekAPI.chat(textPrompt + text, responseFormat);
|
|
|
String content = KimiAPI.jsonChat(textPrompt + text);
|
|
|
+ if (StringUtils.isEmpty(content)) {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
return JSONObject.parseObject(content);
|
|
|
}
|
|
|
|