bolt.diy: There was an error processing your request: Custom error: Invalid prompt: messages must be an array of CoreMessage or UIMessage
Describe the bug
Received this message when prompting using any LLM and the output stalls (nothing else happens)
{
"name": "Error",
"message": "Custom error: Invalid prompt: messages must be an array of CoreMessage or UIMessage",
"stack": "onErrorPart@http://localhost:5173/node_modules/.vite/deps/chunk-YLT56VPJ.js?v=577c59b5:2787:13\nprocessDataStream@http://localhost:5173/node_modules/.vite/deps/chunk-YLT56VPJ.js?v=577c59b5:2488:49\n",
"component": "Chat",
"action": "request",
"error": "Custom error: Invalid prompt: messages must be an array of CoreMessage or UIMessage"
}
I am on Windows running locally using npm and not on Docker. I have tried Chrome, Chrome Canary, and Firefox browsers and get the same message.
Link to the Bolt URL that caused the error
Steps to reproduce
- Follow bolt.diy installation instructions
- Run bolt.diy with
npm run dev - Load bolt.diy in the browser (any browser including Canary)
- Enter an API key for any LLM
- Type any prompt
Expected behavior
Actually do the prompt
Screen Recording / Screenshot
Platform
- OS: Windows
- Browser: Chrome, Chrome Canary, and Firefox
- Version: Latest bolt.diy version on main branch
Provider Used
Any and all LLMs
Model Used
Any and all
Additional context
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 4
- Comments: 20
Hi,
We have made a fix for this : https://github.com/stackblitz-labs/bolt.diy/pull/1582
We will merge it soon…
Br,
Stijnus
Thanks @Stijnus it’s now solved!
Hi, We have made a fix for this : https://github.com/stackblitz-labs/bolt.diy/pull/1582
We will merge it soon…
Br,
Stijnus