From 2fbb9f88934a48386b81eaf0ef4c2911ce2572c4 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Thu, 21 Aug 2025 13:20:39 +0800 Subject: [PATCH] feat:【ai 大模型】升级 spring-ai 到 1.0.1、alibaba-ai 到 1.0.0.3 --- yudao-dependencies/pom.xml | 2 +- yudao-module-ai/pom.xml | 4 ++-- yudao-module-ai/src/main/java/cn/iocoder/yudao/module/ai/framework/ai/core/AiModelFactoryImpl.java | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/yudao-dependencies/pom.xml b/yudao-dependencies/pom.xml index ede38b3..317e8b3 100644 --- a/yudao-dependencies/pom.xml +++ b/yudao-dependencies/pom.xml @@ -64,7 +64,7 @@ 3.1.0 2.7.0 3.0.6 - 4.1.118.Final + 4.2.4.Final 1.2.5 0.9.0 4.5.13 diff --git a/yudao-module-ai/pom.xml b/yudao-module-ai/pom.xml index 4a2323b..3270b44 100644 --- a/yudao-module-ai/pom.xml +++ b/yudao-module-ai/pom.xml @@ -19,8 +19,8 @@ 国外:OpenAI、Ollama、Midjourney、StableDiffusion、Suno - 1.0.0 - 1.0.0.2 + 1.0.1 + 1.0.0.3 1.0.2 diff --git a/yudao-module-ai/src/main/java/cn/iocoder/yudao/module/ai/framework/ai/core/AiModelFactoryImpl.java b/yudao-module-ai/src/main/java/cn/iocoder/yudao/module/ai/framework/ai/core/AiModelFactoryImpl.java index f7b42e3..3387c9b 100644 --- a/yudao-module-ai/src/main/java/cn/iocoder/yudao/module/ai/framework/ai/core/AiModelFactoryImpl.java +++ b/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 { * 可参考 {@link DashScopeImageAutoConfiguration} 的 dashScopeImageModel 方法 */ private static DashScopeImageModel buildTongYiImagesModel(String key) { - DashScopeImageApi dashScopeImageApi = new DashScopeImageApi(key); + DashScopeImageApi dashScopeImageApi = DashScopeImageApi.builder().apiKey(key).build(); return DashScopeImageModel.builder() .dashScopeApi(dashScopeImageApi) .build(); -- libgit2 0.21.4