Edit google-ai.ts

This commit is contained in:
reanon
2025-04-17 20:55:01 +00:00
parent 96645ba529
commit 799a73655c
+1 -6
View File
@@ -41,12 +41,7 @@ const getModelsResponse = () => {
// Get all model IDs from keys, including flash and pro models
const modelIds = Array.from(
new Set(keys.map((k) => k.modelIds).flat())
).filter((id) => id.startsWith("models/gemini") ||
id.startsWith("models/") && (
id.includes("flash") ||
id.includes("pro") ||
id.includes("vision")
));
).filter((id) => id.startsWith("models/"));
const models = modelIds.map((id) => ({
id,