|
@@ -1,4 +1,3 @@
|
|
|
-/*
|
|
|
|
|
|
package org.springblade.common.utils;
|
|
|
import com.google.gson.Gson;
|
|
@@ -34,11 +33,9 @@ public class DeepSeekClient {
|
|
|
.build();
|
|
|
}
|
|
|
|
|
|
-*/
|
|
|
-/**
|
|
|
+ /**
|
|
|
* 请求 DeepSeek API
|
|
|
- *//*
|
|
|
-
|
|
|
+ */
|
|
|
|
|
|
public String callDeepSeek(String prompt) throws IOException {
|
|
|
DeepSeekRequest request = new DeepSeekRequest(prompt, "deepseek-chat");
|
|
@@ -65,11 +62,9 @@ public class DeepSeekClient {
|
|
|
}
|
|
|
|
|
|
|
|
|
-*/
|
|
|
-/**
|
|
|
+ /**
|
|
|
* 解析响应获取结果
|
|
|
- *//*
|
|
|
-
|
|
|
+ */
|
|
|
|
|
|
public String analysisResponse(String responseJson) {
|
|
|
try {
|
|
@@ -97,11 +92,9 @@ public class DeepSeekClient {
|
|
|
}
|
|
|
|
|
|
|
|
|
-*/
|
|
|
-/**
|
|
|
+ /**
|
|
|
* 直接获取精简后的内容
|
|
|
- *//*
|
|
|
-
|
|
|
+ */
|
|
|
|
|
|
public String getSimplifiedContent(String prompt) {
|
|
|
try {
|
|
@@ -249,4 +242,3 @@ public class DeepSeekClient {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-*/
|