Information on n8n setup
- **Database : default
- Running n8n via (Docker, npm, n8n cloud, desktop app): n8n cloud
- Operating system:Mac
I was trying to add groq model in workflow. I have provided the apikey, max tokens, and temperature it is connected to a agent. But when i try to run the workflow following error comes up
400 Failed to call a function. Please adjust your prompt. See ‘failed_generation’ for more details.
Error details
Error: 400 Failed to call a function. Please adjust your prompt. See ‘failed_generation’ for more details. at Stream.iterator (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/[email protected][email protected]/node_modules/groq-sdk/src/lib/streaming.ts:77:21) at processTicksAndRejections (node:internal/process/task_queues:105:5) at ChatGroq.streamResponseChunks (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/@[email protected]@[email protected][email protected][email protected][email protected][email protected][email protected]/node_modules/@langchain/groq/dist/chat_models.cjs:937:26) at ChatGroq.streamIterator (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/@[email protected][email protected][email protected][email protected][email protected]/node_modules/@langchain/core/dist/language_models/chat_models.cjs:127:34) at ChatGroq.transform (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/@[email protected][email protected][email protected][email protected][email protected]_/node_modules/@langchain/core/dist/runnables/base.cjs:408:9) at RunnableBinding.transform (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/@[email protected][email protected][email protected][email protected][email protected]_/node_modules/@langchain/core/dist/runnables/base.cjs:926:9) at ToolCallingAgentOutputParser.transform (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/@[email protected][email protected][email protected][email protected][email protected]_/node_modules/@langchain/core/dist/runnables/base.cjs:397:26) at RunnableSequence.streamIterator (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/@[email protected][email protected][email protected][email protected][email protected]/node_modules/@langchain/core/dist/runnables/base.cjs:1367:30) at RunnableSequence.transform (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/@[email protected][email protected][email protected][email protected][email protected]_/node_modules/@langchain/core/dist/runnables/base.cjs:408:9) at wrapInputForTracing (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/@[email protected][email protected][email protected][email protected][email protected]_/node_modules/@langchain/core/dist/runnables/base.cjs:281:30) at pipeGeneratorWithSetup (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/@[email protected][email protected][email protected][email protected][email protected]_/node_modules/@langchain/core/dist/utils/stream.cjs:271:19) at RunnableLambda.transformStreamWithConfig (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/@[email protected][email protected][email protected][email protected][email protected]/node_modules/@langchain/core/dist/runnables/base.cjs:302:26) at wrapInputForTracing (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/@[email protected][email protected][email protected][email protected][email protected]_/node_modules/@langchain/core/dist/runnables/base.cjs:281:30) at pipeGeneratorWithSetup (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/@[email protected][email protected][email protected][email protected][email protected]_/node_modules/@langchain/core/dist/utils/stream.cjs:271:19) at RunnableLambda.transformStreamWithConfig (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/@[email protected][email protected][email protected][email protected][email protected]/node_modules/@langchain/core/dist/runnables/base.cjs:302:26) at RunnableSequence.streamIterator (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/@[email protected][email protected][email protected][email protected][email protected]/node_modules/@langchain/core/dist/runnables/base.cjs:1367:30)