GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — ValidationException: text content blocks must be non-empty when using Bedrock Runtime · Issue #15715 · anomalyco/opencode Closed as not planned Closed as not planned Copy link DescriptionDescriptionDescriptionWhen using opencode with AWS Bedrock Runtime (InvokeModelWithResponseStream), a ValidationException is thrown with the message:
Error MessageInvokeModelWithResponseStream: operation error Bedrock Runtime: InvokeModelWithResponseStream, Steps to Reproduce
Expected BehaviorMessages are sent to Bedrock API with valid, non-empty text content blocks. Actual BehaviorBedrock returns HTTP 400 with ValidationException: messages: text content blocks must be non-empty, suggesting opencode is including an empty text block in the API request body. Environment
Possible Causeopencode may be including empty text content blocks (e.g. {"type": "text", "text": ""}) in the messages array when constructing the API request, possibly related to tool use results or message history serialization. PluginsNo response OpenCode version1.2.15 Steps to reproduceNo response Screenshot and/or share linkNo response Operating SystemNo response TerminalNo response Reacted by Alex Sadleir Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |