个人简历逻辑添加

This commit is contained in:
2025-11-02 18:27:20 +08:00
parent 79943bf664
commit a784624f19
4 changed files with 12 additions and 10 deletions

View File

@@ -65,7 +65,7 @@ public class OpenAiStreamClient {
requestBody.put("messages", objects);
}
//开始给AI发送请求数据
System.out.println("请求AI数据参数为:"+JSONUtil.toJsonStr(requestBody));
// System.out.println("请求AI数据参数为:"+JSONUtil.toJsonStr(requestBody));
// 创建请求
Request request = new Request.Builder()
.url(apiUrl)
@@ -113,7 +113,7 @@ public class OpenAiStreamClient {
// 解析JSON获取内容
try {
JSONObject json = JSONUtil.parseObj(data);
System.out.println(json);
// System.out.println(json);
String content = json.getJSONArray("choices")
.getJSONObject(0)
.getJSONObject("delta")