diff --git a/images/img.png b/images/img.png new file mode 100644 index 0000000..6fab3f7 Binary files /dev/null and b/images/img.png differ diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..3600700 --- /dev/null +++ b/readme.md @@ -0,0 +1 @@ +![](images/img.png) \ No newline at end of file diff --git a/src/main/java/com/zhangmeng/deepseek/local/chat/config/CommonConfiguration.java b/src/main/java/com/zhangmeng/deepseek/local/chat/config/CommonConfiguration.java index 2c4993a..76f9aeb 100644 --- a/src/main/java/com/zhangmeng/deepseek/local/chat/config/CommonConfiguration.java +++ b/src/main/java/com/zhangmeng/deepseek/local/chat/config/CommonConfiguration.java @@ -28,7 +28,7 @@ public class CommonConfiguration { public ChatClient chatClient(OllamaChatModel model, ChatMemory chatMemory) { return ChatClient .builder(model) - .defaultSystem("你是一个热心、可爱的智能助手,你的名字叫小团团,请以小团团的身份和语气回答问题。") + //.defaultSystem("你是一个热心、可爱的智能助手,你的名字叫小团团,请以小团团的身份和语气回答问题。") .defaultAdvisors( new SimpleLoggerAdvisor(), new MessageChatMemoryAdvisor(chatMemory) diff --git a/src/main/java/com/zhangmeng/deepseek/local/chat/controller/ChatController.java b/src/main/java/com/zhangmeng/deepseek/local/chat/controller/ChatController.java index 8fd4808..f036d0c 100644 --- a/src/main/java/com/zhangmeng/deepseek/local/chat/controller/ChatController.java +++ b/src/main/java/com/zhangmeng/deepseek/local/chat/controller/ChatController.java @@ -32,8 +32,8 @@ public class ChatController { @RequestMapping(value = "/chat", produces = "text/html;charset=utf-8") public Flux chat( @RequestParam("prompt") String prompt, - @RequestParam("chatId") String chatId, - @RequestParam(value = "files", required = false) List files) { + @RequestParam("chatId") String chatId + ) { // 1.保存会话id chatHistoryRepository.save("chat", chatId); diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index b52ec6b..080bcd2 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -1,3 +1,4 @@ + spring: application: name: deepseek-local-chat @@ -10,4 +11,6 @@ spring: logging: level: org.springframework.ai.chat.client.advisor: DEBUG - com.zhangmeng.deepseek.local.chat: DEBUG \ No newline at end of file + com.zhangmeng.deepseek.local.chat: DEBUG +server: + port: 8083 \ No newline at end of file