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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Group message by role when using claude bedrock client #1949

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

kevinmessiaen
Copy link
Member

Description

Group message by role when using Claude bedrock client, this allow some edge case to work such as:

resp = claude_client.complete(messages=[
    ChatMessage(role='system', content='This is a test'),
    ChatMessage(role='user', content='This is the first message'),
    ChatMessage(role='user', content='This is the second message'),
    ChatMessage(role='user', content='Is it working?'),
])

Type of Change

  • 馃摎 Examples / docs / tutorials / dependencies update
  • 馃敡 Bug fix (non-breaking change which fixes an issue)
  • 馃 Improvement (non-breaking change which improves an existing feature)
  • 馃殌 New feature (non-breaking change which adds functionality)
  • 馃挜 Breaking change (fix or feature that would cause existing functionality to change)
  • 馃攼 Security fix

Copy link

sonarcloud bot commented Jun 4, 2024

Please retry analysis of this Pull-Request directly on SonarCloud

@kevinmessiaen kevinmessiaen merged commit 7e16c0d into main Jun 4, 2024
15 of 16 checks passed
@kevinmessiaen kevinmessiaen deleted the feature/handle-consecutive-messages-claude branch June 4, 2024 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants