From 1b7ce423a62858a0a9cd516d6914d8214972c726 Mon Sep 17 00:00:00 2001 From: reanon <85157-reanon@users.noreply.gitgud.io> Date: Thu, 17 Apr 2025 21:03:43 +0000 Subject: [PATCH] Edit google-ai.ts --- src/proxy/google-ai.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,