mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2025-02-07 13:00:05 +08:00
【处理】GoogleGemir 先注释代码,不然跑不起来
This commit is contained in:
parent
ca4ee3be1f
commit
d695219534
@ -60,8 +60,8 @@ public class AiClientFactoryImpl implements AiClientFactory {
|
|||||||
return buildXingHuoChatClient(apiKey);
|
return buildXingHuoChatClient(apiKey);
|
||||||
case QIAN_WEN:
|
case QIAN_WEN:
|
||||||
return buildQianWenChatClient(apiKey);
|
return buildQianWenChatClient(apiKey);
|
||||||
case GEMIR:
|
// case GEMIR:
|
||||||
return buildGoogleGemir(apiKey);
|
// return buildGoogleGemir(apiKey);
|
||||||
default:
|
default:
|
||||||
throw new IllegalArgumentException(StrUtil.format("未知平台({})", platform));
|
throw new IllegalArgumentException(StrUtil.format("未知平台({})", platform));
|
||||||
}
|
}
|
||||||
@ -170,11 +170,11 @@ public class AiClientFactoryImpl implements AiClientFactory {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private static VertexAiGeminiChatClient buildGoogleGemir(String key) {
|
// private static VertexAiGeminiChatClient buildGoogleGemir(String key) {
|
||||||
List<String> keys = StrUtil.split(key, '|');
|
// List<String> keys = StrUtil.split(key, '|');
|
||||||
Assert.equals(keys.size(), 2, "VertexAiGeminiChatClient 的密钥需要 (projectId|location) 格式");
|
// Assert.equals(keys.size(), 2, "VertexAiGeminiChatClient 的密钥需要 (projectId|location) 格式");
|
||||||
VertexAI vertexApi = new VertexAI(keys.get(0), keys.get(1));
|
// VertexAI vertexApi = new VertexAI(keys.get(0), keys.get(1));
|
||||||
return new VertexAiGeminiChatClient(vertexApi);
|
// return new VertexAiGeminiChatClient(vertexApi);
|
||||||
}
|
// }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user