🔧 fix: Tool Selection for Google Models

This commit is contained in:
Danny Avila 2025-07-02 13:01:51 -04:00
parent 24800bfbeb
commit 543281da6c
No known key found for this signature in database
GPG key ID: BF31EEB2C5CA0956

View file

@ -141,7 +141,7 @@ const initializeAgent = async ({
}
/** @type {import('@librechat/agents').GenericTool[]} */
let tools = options.tools ?? structuredTools;
let tools = options.tools?.length ? options.tools : structuredTools;
if (
(agent.provider === Providers.GOOGLE || agent.provider === Providers.VERTEXAI) &&
options.tools?.length &&