Commit b0fc5856fba3805f0ea52fc2865dcd4aa29ec897

Authored by YunaiV
1 parent 4f312677

fix: 启用 AI 和报表模块并按项目版本对齐 Spring AI BOM

yudao-dependencies/pom.xml
... ... @@ -18,6 +18,7 @@
18 18 <flatten-maven-plugin.version>1.7.2</flatten-maven-plugin.version>
19 19 <!-- 统一依赖管理 -->
20 20 <spring.boot.version>3.5.15</spring.boot.version>
  21 + <spring-ai.version>1.1.8</spring-ai.version>
21 22 <!-- Web 相关 -->
22 23 <springdoc.version>2.8.17</springdoc.version>
23 24 <knife4j.version>4.5.0</knife4j.version>
... ... @@ -103,6 +104,13 @@
103 104 <type>pom</type>
104 105 <scope>import</scope>
105 106 </dependency>
  107 + <dependency>
  108 + <groupId>org.springframework.ai</groupId>
  109 + <artifactId>spring-ai-bom</artifactId>
  110 + <version>${spring-ai.version}</version>
  111 + <type>pom</type>
  112 + <scope>import</scope>
  113 + </dependency>
106 114  
107 115 <!-- 业务组件 -->
108 116 <dependency>
... ...
yudao-server/src/main/resources/application.yaml
... ... @@ -147,6 +147,9 @@ spring:
147 147  
148 148 spring:
149 149 ai:
  150 + chat:
  151 + client:
  152 + enabled: false # 关闭 ChatClient.Builder 自动配置:它要求唯一的 ChatModel Bean,而项目会创建多个,导致 ai + report 模块同时引入时启动报错
150 153 vectorstore: # 向量存储
151 154 redis:
152 155 initialize-schema: true
... ...