opencode icon indicating copy to clipboard operation
opencode copied to clipboard

AI_InvalidPromptError

Open rekram1-node opened this issue 19 hours ago • 1 comments

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

rekram1-node avatar Jan 16 '26 22:01 rekram1-node