Commit d695219534649d279178fb44e5b8f5f7366f25ab

Authored by cherishsince
1 parent ca4ee3be

【处理】GoogleGemir 先注释代码,不然跑不起来

yudao-module-ai/yudao-spring-boot-starter-ai/src/main/java/cn/iocoder/yudao/framework/ai/core/factory/AiClientFactoryImpl.java
@@ -60,8 +60,8 @@ public class AiClientFactoryImpl implements AiClientFactory { @@ -60,8 +60,8 @@ public class AiClientFactoryImpl implements AiClientFactory {
60 return buildXingHuoChatClient(apiKey); 60 return buildXingHuoChatClient(apiKey);
61 case QIAN_WEN: 61 case QIAN_WEN:
62 return buildQianWenChatClient(apiKey); 62 return buildQianWenChatClient(apiKey);
63 - case GEMIR:  
64 - return buildGoogleGemir(apiKey); 63 +// case GEMIR:
  64 +// return buildGoogleGemir(apiKey);
65 default: 65 default:
66 throw new IllegalArgumentException(StrUtil.format("未知平台({})", platform)); 66 throw new IllegalArgumentException(StrUtil.format("未知平台({})", platform));
67 } 67 }
@@ -170,11 +170,11 @@ public class AiClientFactoryImpl implements AiClientFactory { @@ -170,11 +170,11 @@ public class AiClientFactoryImpl implements AiClientFactory {
170 } 170 }
171 171
172 172
173 - private static VertexAiGeminiChatClient buildGoogleGemir(String key) {  
174 - List<String> keys = StrUtil.split(key, '|');  
175 - Assert.equals(keys.size(), 2, "VertexAiGeminiChatClient 的密钥需要 (projectId|location) 格式");  
176 - VertexAI vertexApi = new VertexAI(keys.get(0), keys.get(1));  
177 - return new VertexAiGeminiChatClient(vertexApi);  
178 - } 173 +// private static VertexAiGeminiChatClient buildGoogleGemir(String key) {
  174 +// List<String> keys = StrUtil.split(key, '|');
  175 +// Assert.equals(keys.size(), 2, "VertexAiGeminiChatClient 的密钥需要 (projectId|location) 格式");
  176 +// VertexAI vertexApi = new VertexAI(keys.get(0), keys.get(1));
  177 +// return new VertexAiGeminiChatClient(vertexApi);
  178 +// }
179 179
180 } 180 }