diff --git a/pom.xml b/pom.xml
index ab3dc48af7f4cba876e2dad914364ea644567f8b..5c8dd738eefadd6c3d926fd32f0531299703682b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -139,6 +139,28 @@
dynamic-datasource-spring-boot-starter
3.5.1
+
+
+ com.theokanning.openai-gpt3-java
+ service
+ 0.11.0
+
+
+
+ com.theokanning.openai-gpt3-java
+ client
+ 0.11.1
+
+
+ cn.hutool
+ hutool-all
+ 5.8.12
+
+
+ com.alibaba.fastjson2
+ fastjson2
+ 2.0.23
+
diff --git a/src/main/java/com/kwan/springbootkwan/controller/FileUploadController.java b/src/main/java/com/kwan/springbootkwan/controller/FileUploadController.java
index df2b5206238a700e1b74acbb9ecb66aa359e768d..c9b4e9548fe5623a6367f2f75bff008f412e9aae 100644
--- a/src/main/java/com/kwan/springbootkwan/controller/FileUploadController.java
+++ b/src/main/java/com/kwan/springbootkwan/controller/FileUploadController.java
@@ -21,7 +21,7 @@ import java.util.UUID;
* @version : 2.2.0
* @date : 2022/12/19 16:07
*/
-@Api(description = "文件上传信息", tags = "FileUploadController")
+@Api(value = "文件上传信息", tags = "FileUploadController")
@RestController
public class FileUploadController {
diff --git a/src/main/java/com/kwan/springbootkwan/controller/PersonController.java b/src/main/java/com/kwan/springbootkwan/controller/PersonController.java
deleted file mode 100644
index bf567fbcef5302f643bb868788c384cc5a8e66bc..0000000000000000000000000000000000000000
--- a/src/main/java/com/kwan/springbootkwan/controller/PersonController.java
+++ /dev/null
@@ -1,59 +0,0 @@
-//package com.kwan.springbootkwan.controller;
-//
-//import com.kwan.springbootkwan.entity.Person;
-//import com.kwan.springbootkwan.entity.User;
-//import com.kwan.springbootkwan.service.IUserService;
-//import io.swagger.annotations.Api;
-//import io.swagger.annotations.ApiOperation;
-//import org.springframework.batch.core.Job;
-//import org.springframework.batch.core.JobParameters;
-//import org.springframework.batch.core.launch.JobLauncher;
-//import org.springframework.beans.factory.annotation.Autowired;
-//import org.springframework.web.bind.annotation.*;
-//
-//import java.util.Date;
-//import java.util.List;
-//
-///**
-// * Person相关
-// *
-// * @author : qinyingjie
-// * @version : 2.2.0
-// * @date : 2022/12/19 16:08
-// */
-//@Api(description = "person用户信息", tags = "PersonController")
-//@RestController
-//@RequestMapping("/person")
-//public class PersonController {
-//
-// @Autowired
-// private JobLauncher jobLauncher;
-// @Autowired
-// private Job job;
-//
-// /**
-// * {
-// * "name": "zhang san",
-// * "age": 24,
-// * "birthday": "2022-12-19"
-// * }
-// */
-// @ApiOperation(value = "json返回", notes = "json返回")
-// @GetMapping("/person")
-// public Person person() {
-// Person person = new Person();
-// person.setUsername("zhang san");
-// person.setId(24);
-// person.setAddress("湖北");
-// return person;
-// }
-//
-// @GetMapping("/hello")
-// public void hello() {
-// try {
-// jobLauncher.run(job, new JobParameters());
-// } catch (Exception e) {
-// e.printStackTrace();
-// }
-// }
-//}
\ No newline at end of file
diff --git a/src/main/java/com/kwan/springbootkwan/controller/RedisController.java b/src/main/java/com/kwan/springbootkwan/controller/RedisController.java
index c28a5c5222dbc423f715a81f9102968945132bd5..d9b5ea80f0bb07da599c2451bbd26102c6f68e27 100644
--- a/src/main/java/com/kwan/springbootkwan/controller/RedisController.java
+++ b/src/main/java/com/kwan/springbootkwan/controller/RedisController.java
@@ -10,7 +10,7 @@ import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.concurrent.TimeUnit;
-@Api(description = "redis测试信息", tags = "RedisController")
+@Api(value = "redis测试信息", tags = "RedisController")
@RestController
@RequestMapping("/test")
public class RedisController {
diff --git a/src/main/java/com/kwan/springbootkwan/entity/chat/ChoiceMessage.java b/src/main/java/com/kwan/springbootkwan/entity/chat/ChoiceMessage.java
new file mode 100644
index 0000000000000000000000000000000000000000..3d3480897f04f7d01570f83d0cf43d001e9bf30e
--- /dev/null
+++ b/src/main/java/com/kwan/springbootkwan/entity/chat/ChoiceMessage.java
@@ -0,0 +1,30 @@
+package com.kwan.springbootkwan.entity.chat;
+
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+
+/**
+ * 结果
+ *
+ * @author : qinyingjie
+ * @version : 2.2.0
+ * @date : 2023/3/22 21:12
+ */
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+@Data
+public class ChoiceMessage {
+ /**
+ * 角色
+ */
+ String role;
+ /**
+ * 具体内容
+ */
+ String content;
+}
+
diff --git a/src/main/java/com/kwan/springbootkwan/entity/chat/Choices.java b/src/main/java/com/kwan/springbootkwan/entity/chat/Choices.java
new file mode 100644
index 0000000000000000000000000000000000000000..62fff46c432f0c83c4de26310ba57ca3113881f0
--- /dev/null
+++ b/src/main/java/com/kwan/springbootkwan/entity/chat/Choices.java
@@ -0,0 +1,33 @@
+package com.kwan.springbootkwan.entity.chat;
+
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+
+/**
+ * 结果集
+ *
+ * @author : qinyingjie
+ * @version : 2.2.0
+ * @date : 2023/3/22 21:12
+ */
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+@Data
+public class Choices {
+ /**
+ * 内容对象
+ */
+ private ChoiceMessage message;
+ /**
+ * 结束原因
+ */
+ private String finish_reason;
+ /**
+ * 索引位置
+ */
+ private Integer index;
+}
diff --git a/src/main/java/com/kwan/springbootkwan/entity/chat/CompletionChatRequest.java b/src/main/java/com/kwan/springbootkwan/entity/chat/CompletionChatRequest.java
new file mode 100644
index 0000000000000000000000000000000000000000..d60967b13f8d62c1b4c2f1147f1af174b7781898
--- /dev/null
+++ b/src/main/java/com/kwan/springbootkwan/entity/chat/CompletionChatRequest.java
@@ -0,0 +1,41 @@
+package com.kwan.springbootkwan.entity.chat;
+
+
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.util.List;
+import java.util.Map;
+
+
+/**
+ * 请求参数
+ *
+ * @author : qinyingjie
+ * @version : 2.2.0
+ * @date : 2023/3/22 21:00
+ */
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+@Data
+public class CompletionChatRequest {
+ String model;
+ List