backport: skip content if assistant content string is empty#511
Merged
aabchoo merged 1 commit intorelease/v0.1from Mar 20, 2025
Merged
backport: skip content if assistant content string is empty#511aabchoo merged 1 commit intorelease/v0.1from
aabchoo merged 1 commit intorelease/v0.1from
Conversation
…508) **Commit Message** AWS Claude 3.5 v1 has cases when assistant returns empty content. Sending that back to AWS will result in a validation error. Will skip adding empty content if string is empty. ``` openai.BadRequestError: Error code: 400 - {'type': 'error', 'error': {'type': 'ValidationException:http://internal.amazon.com/coral/com.amazon.bedrock/', 'code': '400', 'message': 'The text field in the ContentBlock object at messages.3.content.0 is blank. Add text to the text field, and try again.'}} ``` **Related Issues/PRs (if applicable)** #486 Signed-off-by: Aaron Choo <achoo30@bloomberg.net>
Member
|
nice |
mathetake
approved these changes
Mar 20, 2025
mathetake
pushed a commit
that referenced
this pull request
Mar 20, 2025
**Commit Message** Update site to use v0.1.4 instead of v0.1.3 ref: #511 --------- Signed-off-by: Aaron Choo <achoo30@bloomberg.net>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Commit Message
Ref: (#508)
AWS Claude 3.5 v1 has cases when assistant returns empty content. Sending that back to AWS will result in a validation error. Will skip adding empty content if string is empty.
Related Issues/PRs (if applicable)
#486