mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-16 16:30:15 +01:00
🔧 fix: Tool Selection for Google Models
This commit is contained in:
parent
24800bfbeb
commit
543281da6c
1 changed files with 1 additions and 1 deletions
|
|
@ -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 &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue