FlowiseAI / Flowise

Drag & drop UI to build your customized LLM flow
https://flowiseai.com
Apache License 2.0
27.1k stars 13.94k forks source link

[BUG] "binTools()" error whilst using AWS ChatBedrock #2725

Open dheerajbhadani opened 5 days ago

dheerajbhadani commented 5 days ago

Describe the bug

"binTools()" error whilst using AWS ChatBedrock. Below is error log for reference purpose: 2024-06-26 10:10:56 2024-06-26 09:10:56 [ERROR]: This agent requires that the "bindTools()" method be implemented on the input model. 2024-06-26 10:10:56 Error: This agent requires that the "bindTools()" method be implemented on the input model. 2024-06-26 10:10:56 at prepareAgent (/usr/local/lib/node_modules/flowise/node_modules/flowise-components/dist/nodes/agents/ToolAgent/ToolAgent.js:191:15) 2024-06-26 10:10:56 2024-06-26 09:10:56 [ERROR]: [server]: Error: Error: This agent requires that the "bindTools()" method be implemented on the input model. 2024-06-26 10:10:56 Error: Error: This agent requires that the "bindTools()" method be implemented on the input model. 2024-06-26 10:10:56 at buildFlow (/usr/local/lib/node_modules/flowise/dist/utils/index.js:493:19) 2024-06-26 10:10:56 at async utilBuildChatflow (/usr/local/lib/node_modules/flowise/dist/utils/buildChatflow.js:222:36) 2024-06-26 10:10:56 at async createInternalPrediction (/usr/local/lib/node_modules/flowise/dist/controllers/internal-predictions/index.js:7:29)

To Reproduce Steps to reproduce the behavior:

  1. Load attached flow
  2. Click on 'chat'
  3. Type 'Hey!' as input
  4. See error

Expected behavior Flow should continue without error.

Screenshots Screenshot 2024-06-26 102503

Flow BindToolErrorReproducible Chatflow.json

Setup

Additional context It works fine with OpenAI Chat model (ChatOpenAI).