Skip to content

In one session developing for awhile with DeepSeek-V4-Flash, received "all messages must have non-empty content" errors #31971

Description

@DXXS

Description

I was in the midst of a coding session with DeepSeek-V4-Flash/Max, and reportedly had used ~354k tokens / 34% of its context window, when ~suddenly my prompts have been receiving a repeated error (tried several reprompts, with same error):

Bad Request: {"error":{"message":"messages.625: all messages must have non-empty content","type":"invalid_request_error","param": ┃ null,"code":"invalid_request_error"}}

I was using OpenCode 1.15 at the time, and when I started receiving the error, I upgraded to the current latest, but still the error is being given in that session. Newly created sessions are initially interacting w/o such error(s)...

Plugins

No response

OpenCode version

1.17.3

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

OSX 15.6.1 (24G90)

Terminal

OSX Terminal

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions