AnswerDotAI / AnswerDotAI/claudette
Error BadRequestError: Error code: 400
- Dominant language
- Jupyter Notebook
- Stars
- 316
- Forks
- 43
- PR merge metrics
- No merged PRs in 30d
Description
I sometimes get an error that the content is empty.
chat.toolloop(conversation)
BadRequestError: Error code: 400 - {'type': 'error', 'error': {'type': 'invalid_request_error', 'message': 'messages: text content blocks must be non-empty'}}
In the history:
{'role': 'assistant', 'content': ''},
I'm using
claudette: 0.1.2
AnthropicVertex: 0.43.1
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing chat.toolloop(conversation) with the history containing {'role': 'assistant', 'content': ''} under claudette 0.1.2 and AnthropicVertex 0.43.1. Trace how that history reaches the request and verify the empty-content case is handled without producing the reported BadRequestError.
Written by the indexing model from the issue text.
Assessment
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100