Flowise icon indicating copy to clipboard operation
Flowise copied to clipboard

TypeError: tools.flat is not a function [BUG]

Open ms6rb opened this issue 1 year ago • 1 comments

Describe the bug I'm getting this error TypeError: tools.flat is not a function in the chat on a fresh install from the quick start.

To Reproduce Steps to reproduce the behavior: 1- Install from the Quick Start 2- Add OpenAI agent and MRKL agent for LLMs 3- Chat with bot 4- See error in the chat TypeError: tools.flat is not a function 5- See error in console:

TypeError: tools.flat is not a function
    at MRKLAgentLLM_Agents.init (C:\Users\Ms6RB\AppData\Roaming\npm\node_modules\flowise\node_modules\flowise-components\dist\nodes\agents\MRKLAgentLLM\MRKLAgentLLM.js:31:23)
    at buildLangchain (C:\Users\Ms6RB\AppData\Roaming\npm\node_modules\flowise\dist\utils\index.js:208:72)
    at async App.processPrediction (C:\Users\Ms6RB\AppData\Roaming\npm\node_modules\flowise\dist\index.js:539:44)
    at async C:\Users\Ms6RB\AppData\Roaming\npm\node_modules\flowise\dist\index.js:294:13

Expected behavior I expected to get a response from the bot.

Screenshots image

Setup

  • OS: Windows 11
  • Node v19.9.0
  • npx\npm 9.6.5

ms6rb avatar Jun 09 '23 22:06 ms6rb

thanks! some of the browsers do not supports .flat() method. Put up a fix here - https://github.com/FlowiseAI/Flowise/pull/283

HenryHengZJ avatar Jun 10 '23 00:06 HenryHengZJ

thanks! some of the browsers do not supports .flat() method. Put up a fix here - #283

that solves the problem thanks <3

ms6rb avatar Jun 10 '23 21:06 ms6rb