Commit 2fbb9f88934a48386b81eaf0ef4c2911ce2572c4
1 parent
98ed8009
feat:【ai 大模型】升级 spring-ai 到 1.0.1、alibaba-ai 到 1.0.0.3
Showing
3 changed files
with
4 additions
and
4 deletions
yudao-dependencies/pom.xml
| ... | ... | @@ -64,7 +64,7 @@ |
| 64 | 64 | <tika-core.version>3.1.0</tika-core.version> |
| 65 | 65 | <ip2region.version>2.7.0</ip2region.version> |
| 66 | 66 | <bizlog-sdk.version>3.0.6</bizlog-sdk.version> |
| 67 | - <netty.version>4.1.118.Final</netty.version> | |
| 67 | + <netty.version>4.2.4.Final</netty.version> | |
| 68 | 68 | <mqtt.version>1.2.5</mqtt.version> |
| 69 | 69 | <pf4j-spring.version>0.9.0</pf4j-spring.version> |
| 70 | 70 | <vertx.version>4.5.13</vertx.version> | ... | ... |
yudao-module-ai/pom.xml
| ... | ... | @@ -19,8 +19,8 @@ |
| 19 | 19 | 国外:OpenAI、Ollama、Midjourney、StableDiffusion、Suno |
| 20 | 20 | </description> |
| 21 | 21 | <properties> |
| 22 | - <spring-ai.version>1.0.0</spring-ai.version> | |
| 23 | - <alibaba-ai.version>1.0.0.2</alibaba-ai.version> | |
| 22 | + <spring-ai.version>1.0.1</spring-ai.version> | |
| 23 | + <alibaba-ai.version>1.0.0.3</alibaba-ai.version> | |
| 24 | 24 | <tinyflow.version>1.0.2</tinyflow.version> |
| 25 | 25 | </properties> |
| 26 | 26 | ... | ... |
yudao-module-ai/src/main/java/cn/iocoder/yudao/module/ai/framework/ai/core/AiModelFactoryImpl.java
| ... | ... | @@ -347,7 +347,7 @@ public class AiModelFactoryImpl implements AiModelFactory { |
| 347 | 347 | * 可参考 {@link DashScopeImageAutoConfiguration} 的 dashScopeImageModel 方法 |
| 348 | 348 | */ |
| 349 | 349 | private static DashScopeImageModel buildTongYiImagesModel(String key) { |
| 350 | - DashScopeImageApi dashScopeImageApi = new DashScopeImageApi(key); | |
| 350 | + DashScopeImageApi dashScopeImageApi = DashScopeImageApi.builder().apiKey(key).build(); | |
| 351 | 351 | return DashScopeImageModel.builder() |
| 352 | 352 | .dashScopeApi(dashScopeImageApi) |
| 353 | 353 | .build(); | ... | ... |