diff --git a/.gitignore b/.gitignore index 549e00a..e7775bf 100644 --- a/.gitignore +++ b/.gitignore @@ -31,3 +31,4 @@ build/ ### VS Code ### .vscode/ +/.vs diff --git a/src/main/java/cn/teammodel/ai/domain/SparkChatRequestParam.java b/src/main/java/cn/teammodel/ai/domain/SparkChatRequestParam.java index 8a450ea..7e4ae5d 100644 --- a/src/main/java/cn/teammodel/ai/domain/SparkChatRequestParam.java +++ b/src/main/java/cn/teammodel/ai/domain/SparkChatRequestParam.java @@ -46,7 +46,7 @@ public class SparkChatRequestParam { public static class Message { private String role; private String content; - + /** * 一个类下面有两种类型的对象,使用静态的对象产生方法,好思路 */ diff --git a/src/main/java/cn/teammodel/config/knife/Knife4jConfig.java b/src/main/java/cn/teammodel/config/knife/Knife4jConfig.java index d875269..88e6c74 100644 --- a/src/main/java/cn/teammodel/config/knife/Knife4jConfig.java +++ b/src/main/java/cn/teammodel/config/knife/Knife4jConfig.java @@ -2,6 +2,8 @@ package cn.teammodel.config.knife; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; +import org.springframework.context.annotation.Profile; + import springfox.documentation.builders.ApiInfoBuilder; import springfox.documentation.builders.PathSelectors; import springfox.documentation.builders.RequestHandlerSelectors; @@ -15,7 +17,7 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2; */ @Configuration @EnableSwagger2 -//@Profile({"dev", "test"}) +@Profile({"dev", "test"}) public class Knife4jConfig { @Bean diff --git a/src/main/java/cn/teammodel/controller/frontend/AiController.java b/src/main/java/cn/teammodel/controller/frontend/AiController.java index d6b38ef..9dfbf88 100644 --- a/src/main/java/cn/teammodel/controller/frontend/AiController.java +++ b/src/main/java/cn/teammodel/controller/frontend/AiController.java @@ -47,7 +47,7 @@ public class AiController { return chatMessageService.chatCompletion(chatCompletionReqDto, null); } -// @PostMapping("chat/test/completion") + @PostMapping("chat/test/completion") @ApiOperation("与 spark 的流式对话") public SseEmitter testCompletion(@RequestBody @Valid ChatCompletionReqDto chatCompletionReqDto) throws IOException, InterruptedException { SseEmitter sseEmitter = new SseEmitter(); diff --git a/src/main/resources/libs/jjwt-0.9.1.jar b/src/main/resources/libs/jjwt-0.9.1.jar deleted file mode 100644 index 79d6288..0000000 Binary files a/src/main/resources/libs/jjwt-0.9.1.jar and /dev/null differ