jichengda
jichengda
### Is there an existing issue for this? - [x] I have searched the existing issues ### Current Behavior 有人遇到过这种情况吗?流式响应的时候会有两次think。如果不用流式响应,直接用call则是一次think。  ### Expected Behavior _No response_ ### Steps To Reproduce...
### Feature Request 如何在controller层获取到消息的id啊 ``` @GetMapping("/stream") public Flux testStream(String q, String chatId, HttpServletResponse response) { response.setCharacterEncoding("UTF-8"); SystemPromptTemplate systemPromptTemplate = new SystemPromptTemplate(systemResource); String render = systemPromptTemplate.render(Map.of("currentDate", LocalDateTime.now().atZone(ZoneId.of("Asia/Shanghai")).format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm")))); return chatClient.prompt().system(render).user(q) .advisors(a...
spring ai 1.0.0 ollama version is 0.9.2 java.lang.NullPointerException: Cannot invoke "java.time.Duration.plus(java.time.Duration)" because "evalDuration" is null ``` 2025-06-21T14:18:17.887+08:00 ERROR 7 --- [ai-energy-report] [nio-8090-exec-2] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context...
哪位大佬可以帮我看一下这个问题。感谢 spring ai open ai + vllm 部署的模型。调用工具的时候不返回,一直在死循环。日志在最后面。 模型是Qwen3-32B,用ollama的时候是正常的。想换成vllm。 ` @RequestMapping("chat") public String chat(String question) { OpenAiApi api = OpenAiApi.builder() .apiKey("EMPTY") .baseUrl("http://ip:8001/") .build(); ToolCallback[] dateTimeTools = ToolCallbacks.from(new DateTimeTools()); OpenAiChatOptions options...
如何在controller层获取到消息的id啊 ``` @GetMapping("/stream") public Flux testStream(String q, String chatId, HttpServletResponse response) { response.setCharacterEncoding("UTF-8"); SystemPromptTemplate systemPromptTemplate = new SystemPromptTemplate(systemResource); String render = systemPromptTemplate.render(Map.of("currentDate", LocalDateTime.now().atZone(ZoneId.of("Asia/Shanghai")).format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm")))); return chatClient.prompt().system(render).user(q) .advisors(a -> a.param(CONVERSATION_ID, chatId))...