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

Fix snippet #22

Merged
merged 1 commit into from
Jul 9, 2024
Merged

Fix snippet #22

merged 1 commit into from
Jul 9, 2024

Conversation

billytrend-cohere
Copy link
Contributor

@billytrend-cohere billytrend-cohere commented Jul 9, 2024

This pull request updates the README.md file to reflect changes in the Cohere API.

Summary

The changes in this PR involve updating the code examples in the README.md file to use the new Message class from the Cohere API instead of the deprecated ChatMessageRole enum.

Changes

  • The import statement for ChatMessageRole has been replaced with an import for the new Message class.
  • The code example now uses the Message.user and Message.chatbot methods to create ChatMessage instances with the appropriate roles, instead of using the ChatMessageRole enum directly.

@billytrend-cohere billytrend-cohere requested a review from a team as a code owner July 9, 2024 14:28
@billytrend-cohere billytrend-cohere merged commit 8af467d into main Jul 9, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

1 participant