opencode
opencode copied to clipboard
AI_InvalidPromptError
Description
AI_InvalidPromptError: Invalid prompt: The messages must be a ModelMessage[]. If you have passed a UIMessage[], you can use convertToModelMessages to convert them.
There was a bug regarding compaction in 1.1.24 that could cause this, if you upgrade to 1.1.25 (releasing rn) it should be fixed
OpenCode version
1.1.24