From 9bad721754fe8bbe2e5f459d0706e0fefac569f3 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期日, 20 九月 2026 09:05:41 +0800
Subject: [PATCH] feat(mes): 添加智能质检报告功能与AI导入能力
---
yudao-module-ai/src/main/java/cn/iocoder/yudao/module/ai/framework/ai/core/model/AiModelFactory.java | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/yudao-module-ai/src/main/java/cn/iocoder/yudao/module/ai/framework/ai/core/model/AiModelFactory.java b/yudao-module-ai/src/main/java/cn/iocoder/yudao/module/ai/framework/ai/core/model/AiModelFactory.java
index 8ae05c4..57e2ea8 100644
--- a/yudao-module-ai/src/main/java/cn/iocoder/yudao/module/ai/framework/ai/core/model/AiModelFactory.java
+++ b/yudao-module-ai/src/main/java/cn/iocoder/yudao/module/ai/framework/ai/core/model/AiModelFactory.java
@@ -4,6 +4,7 @@
import org.springframework.ai.chat.model.ChatModel;
import org.springframework.ai.embedding.EmbeddingModel;
import org.springframework.ai.vectorstore.VectorStore;
+import java.time.Duration;
import java.util.Map;
/**
@@ -11,7 +12,15 @@
*/
public interface AiModelFactory {
- ChatModel getOrCreateChatModel(AiPlatformEnum platform, String apiKey, String url, String model);
+ /**
+ * 鑾峰彇锛堟垨鍒涘缓骞剁紦瀛橈級Chat 妯″瀷
+ *
+ * @param temperature 閲囨牱娓╁害锛宯ull 琛ㄧず鐢ㄩ粯璁ゅ��
+ * @param maxTokens 鍗曟鍥炲鏈�澶� token 鏁帮紝null 琛ㄧず娌跨敤妯″瀷榛樿鍊�
+ * @param timeout 鍗曟璋冪敤瓒呮椂
+ */
+ ChatModel getOrCreateChatModel(AiPlatformEnum platform, String apiKey, String url, String model,
+ Double temperature, Integer maxTokens, Duration timeout);
ChatModel getDefaultChatModel(AiPlatformEnum platform);
--
Gitblit v1.9.3