"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:
Load attached flow
Click on 'chat'
Type 'Hey!' as input
See error
Expected behavior
Flow should continue without error.
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:
Expected behavior Flow should continue without error.
Screenshots![Screenshot 2024-06-26 102503](https://github.com/FlowiseAI/Flowise/assets/7458031/e5942094-8145-4e50-a82f-dd893928853e)
Flow BindToolErrorReproducible Chatflow.json
Setup
Additional context It works fine with OpenAI Chat model (ChatOpenAI).