Guoguo-notes
主页
常用笔记
vue笔记及周边生态
  • 团队协作及规范
  • 项目框架及架构
  • 飞码篇
  • Java
  • React笔记
GitHub
主页
常用笔记
vue笔记及周边生态
  • 团队协作及规范
  • 项目框架及架构
  • 飞码篇
  • Java
  • React笔记
GitHub

Pom 配置

# Spring Boot Admin 配置项
spring:
   ai:
    ollama:
      chat:
        model: qwen3:1.7b
      base-url: http://localhost:11434

官网链接

https://doc.spring4all.com/spring-ai/reference/api/chatclient.html

sse 长链接 单向数据传输 后端 -> 前端

websorket 双向数据传输

ai 格式化输出

  Boolean aBoolean = chatclient.prompt()ChatClientRequestSpec// 用户提示词
  .user( text: message + "/no_think")
  .system(p -> p.param(k:"current_date", LocalDate.now().t
  .call()CallResponseSpec
+  entity(Boolean.class)

切换大模型教程

image-20250703094738518

Edit this page
Last Updated:
Contributors: 袁果锅