Edit google-ai.ts
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user