[GH-ISSUE #2108] [BUG]: Anthropic Error:invalid_request_error messages: text content blocks must contain non-whitespace text #1374

Closed
opened 2026-02-22 18:24:30 -05:00 by yindo · 2 comments
Owner

Originally created by @assortednuggets on GitHub (Aug 13, 2024).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/2108

Originally assigned to: @timothycarambat on GitHub.

How are you running AnythingLLM?

AnythingLLM desktop app

What happened?

Latest desktop on Mac 1.62

previous version works perfectly

Anthropic default LLM and Chat LLM
GPT4o for agents
Below is the error now from Claude in main chat

Anthropic Error:invalid_request_error messages: text content blocks must contain non-whitespace text

Are there known steps to reproduce?

No response

Originally created by @assortednuggets on GitHub (Aug 13, 2024). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/2108 Originally assigned to: @timothycarambat on GitHub. ### How are you running AnythingLLM? AnythingLLM desktop app ### What happened? Latest desktop on Mac 1.62 previous version works perfectly Anthropic default LLM and Chat LLM GPT4o for agents Below is the error now from Claude in main chat Anthropic Error:invalid_request_error messages: text content blocks must contain non-whitespace text ### Are there known steps to reproduce? _No response_
yindo added the possible buginvestigating labels 2026-02-22 18:24:30 -05:00
yindo closed this issue 2026-02-22 18:24:30 -05:00
Author
Owner

@timothycarambat commented on GitHub (Aug 13, 2024):

Look through your chat history log and find the offending response which is just whitespace and delete it and this error will go away in the interim for the chat thread it is blocking

@timothycarambat commented on GitHub (Aug 13, 2024): Look through your chat history log and find the offending response which is just whitespace and delete it and this error will go away in the interim for the chat thread it is blocking
Author
Owner

@assortednuggets commented on GitHub (Aug 14, 2024):

thank you

@assortednuggets commented on GitHub (Aug 14, 2024): thank you
yindo changed title from [BUG]: Anthropic Error:invalid_request_error messages: text content blocks must contain non-whitespace text to [GH-ISSUE #2108] [BUG]: Anthropic Error:invalid_request_error messages: text content blocks must contain non-whitespace text 2026-06-05 14:40:25 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#1374