I am using the latest version of LibreChat with @librechat/agents@3.0.32.
I configured Vertex AI to use Anthropic models (specifically mapped as claude-sonnet-4.5, claude-haiku-4-5, and claude-opus-4-5). While basic chat completions function correctly without any issues, the following error occurs immediately after invoking Tools (e.g., file_search) or using MCP (Model Context Protocol).
Something went wrong. Here's the specific error message we encountered: An error occurred while processing the request: {"type":"error","error":{"type":"invalid_request_error","message":"messages: text content blocks must be non-empty"},"request_id":"req_vrtx_011CVUBrrdYh8CvbYcAFXMLQ"}
server logs
{"attemptNumber":1,"cause":{"code":400,"message":"{\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages: text content blocks must be non-empty\"},\"request_id\":\"req_vrtx_011CVUCCef2Vy7pvbkXwYXtX\"}","status":"Bad Request"},"code":400,"config":{"body":"{\"anthropic_version\":\"vertex-2023-10-16\",\"messages\":[{\"role\":\"user\",\"content\":[{\"type\":\"text\",\"text\":\"file content plz\"}]},{\"role\":\"assistant\",\"content\":[{\"type\":\"text\",\"text\":\"\"},{\"type\":\"text\",\"text\":\"I\"},{\"type\":\"text\",\"text\":\"'\"},{\"type\":\"text\",\"text\"...","duplex":"half","headers":{},"method":"POST","responseType":"stream","url":{}},"level":"error","message":"[api/server/controllers/agents/client.js #sendCompletion] Operation aborted
Could you please look into this? Any help would be appreciated.
I am using the latest version of LibreChat with
@librechat/agents@3.0.32.I configured Vertex AI to use Anthropic models (specifically mapped as
claude-sonnet-4.5,claude-haiku-4-5, andclaude-opus-4-5). While basic chat completions function correctly without any issues, the following error occurs immediately after invoking Tools (e.g.,file_search) or using MCP (Model Context Protocol).Something went wrong. Here's the specific error message we encountered: An error occurred while processing the request: {"type":"error","error":{"type":"invalid_request_error","message":"messages: text content blocks must be non-empty"},"request_id":"req_vrtx_011CVUBrrdYh8CvbYcAFXMLQ"}server logs
{"attemptNumber":1,"cause":{"code":400,"message":"{\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages: text content blocks must be non-empty\"},\"request_id\":\"req_vrtx_011CVUCCef2Vy7pvbkXwYXtX\"}","status":"Bad Request"},"code":400,"config":{"body":"{\"anthropic_version\":\"vertex-2023-10-16\",\"messages\":[{\"role\":\"user\",\"content\":[{\"type\":\"text\",\"text\":\"file content plz\"}]},{\"role\":\"assistant\",\"content\":[{\"type\":\"text\",\"text\":\"\"},{\"type\":\"text\",\"text\":\"I\"},{\"type\":\"text\",\"text\":\"'\"},{\"type\":\"text\",\"text\"...","duplex":"half","headers":{},"method":"POST","responseType":"stream","url":{}},"level":"error","message":"[api/server/controllers/agents/client.js #sendCompletion] Operation abortedCould you please look into this? Any help would be appreciated.