Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error BadRequestError: Error code: 400 #59

Open
mmichelli opened this issue Feb 12, 2025 · 1 comment
Open

Error BadRequestError: Error code: 400 #59

mmichelli opened this issue Feb 12, 2025 · 1 comment

Comments

@mmichelli
Copy link

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

@mmichelli
Copy link
Author

I guess it's a part of this:
anthropics/anthropic-sdk-python#461

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant