langchain-ai/langchain-google

400 Bad Request when using Claude Sonnet on GCP

開放

#1,256 建立於 2025年10月10日

 (6 則留言) (0 個反應) (0 位負責人)Python (461 個分叉)auto 404
anthropic-vertexhelp wantedvertexai

倉庫指標

星標
 (392 顆星)
PR 合併指標
 (平均合併 2天 14小時) (30 天內合併 25 個 PR)

描述

Using Claude Sonnet 4 on GCP

And using ChatAnthropicVertex from package langchain_google_vertexai

Immediately after the first subagent responds, the graph fails with following the error

Anyone know how to fix it?

anthropic.BadRequestError: Error code: 400 - {'type': 'error', 'error': {'type': 'invalid_request_error', 'message': 'messages.6.content.0.tool_result.content.0.text.index: Extra inputs are not permitted'}, 'request_id': 'req_vrtx_011CTzH5cU85qEobDpNtgbp7'}

貢獻者指南