Skip to content
Discussion options

You must be logged in to vote

I checked the current Harness code at f3803c9. In the DeepSeek Messages adapter, message_delta passes stop_reason to stopReason(). That function currently handles end_turn, stop_sequence, tool_use and max_tokens; every other value goes through malformed(). I also ran that function in isolation: refusal produces the error you saw.

So MALFORMED_RESPONSE here is the Harness client's classification of an unsupported value; by itself it doesn't establish why the provider sent it. For comparison, Anthropic documents refusal as a Messages stop reason, but that documentation is for Claude and doesn't establish DeepSeek's contract or the cause of this particular refusal.

If it happens again, a red…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by yanwenzong1-pixel
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants