diff --git a/src/proxy/google-ai.ts b/src/proxy/google-ai.ts index f99f05e..5ac7d9d 100644 --- a/src/proxy/google-ai.ts +++ b/src/proxy/google-ai.ts @@ -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,