Edit google-ai.ts

This commit is contained in:
reanon
2025-04-17 21:03:43 +00:00
parent 799a73655c
commit 1b7ce423a6
+2 -2
View File
@@ -38,10 +38,10 @@ const getModelsResponse = () => {
return modelsCache;
}
// Get all model IDs from keys, including flash and pro models
// Get all model IDs from keys, excluding any with "bard" in the name
const modelIds = Array.from(
new Set(keys.map((k) => k.modelIds).flat())
).filter((id) => id.startsWith("models/"));
).filter((id) => id.startsWith("models/") && !id.includes("bard"));
const models = modelIds.map((id) => ({
id,