Skip to content

Document how to use Cohere models through the OpenAI provider. #105

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ryanycoleman
Copy link
Member

Description

This PR adds Cohere as a model provider to the Strands documentation by describing how to use the pre-existing OpenAI model provider, as an alternative to a custom implementation proposed in strands-agents/sdk-python#236.

Type of Change

  • New content addition

Motivation and Context

This approach minimizes the moving parts that need to be maintained to enable Strands to work with Cohere models over time, requiring only that Strands maintain the OpenAI provider and that Cohere maintain their compatibility layer with its API spec.

Areas Affected

https://strandsagents.com/latest/user-guide/concepts/model-providers

Screenshots

Screenshot 2025-06-26 at 2 24 40 PM

Checklist

  • [ X] I have read the CONTRIBUTING document
  • [ X] My changes follow the project's documentation style
  • [X ] I have tested the documentation locally using mkdocs serve
  • [ X] Links in the documentation are valid and working
  • [ X] Images/diagrams are properly sized and formatted
  • [X ] All new and existing tests pass

Additional Notes

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@ryanycoleman ryanycoleman requested a review from Unshure June 26, 2025 21:25
@ryanycoleman
Copy link
Member Author

See also #108 but that example may not work without streaming disabled.

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