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

docs(weave): Update docs to reuse the new method for initializing the cohere_patcher #3326

Closed
wants to merge 2 commits into from

Conversation

IvanKirchev
Copy link
Contributor

Description

Use the new method for initializing the cohere_patcher

What does the PR do?

This PR introduces a small change that makes use of the new method for initializing the cohere_patcher and reflects
Commit (adb740b) that moved the cohere patcher initialization to the following method: get_cohere_patcher and away from using directly the cohere_patcher variable. Without this PR if a user follows the cohere integration docs it will face the following error

ImportError: cannot import name 'cohere_patcher' from 'weave.integrations.cohere' (/usr/local/lib/python3.10/dist-packages/weave/integrations/cohere/__init__.py)

Testing

How was this PR tested?
Tested locally by running the following code in a Notebook:

from weave.integrations.cohere import get_cohere_patcher

get_cohere_patcher().attempt_patch()

@IvanKirchev IvanKirchev requested a review from a team as a code owner January 6, 2025 21:49
@circle-job-mirror
Copy link

circle-job-mirror bot commented Jan 6, 2025

This PR requires manual approval from a wandb user to run all CI checks.

To see the current diff, click here.

To approve CI for this PR as of this commit, comment:

/approve 0bf7389fd7722e8243163ef300bce47c5c9c3e7a

Copy link
Contributor

github-actions bot commented Jan 6, 2025

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@IvanKirchev IvanKirchev changed the title feat(docs): Use the new method for initializing the cohere_patcher feat(dev): Update docs to reuse the new method for initializing the cohere_patcher Jan 6, 2025
@IvanKirchev
Copy link
Contributor Author

I have read the CLA Document and I hereby sign the CLA

github-actions bot added a commit that referenced this pull request Jan 6, 2025
@circle-job-mirror
Copy link

@IvanKirchev IvanKirchev changed the title feat(dev): Update docs to reuse the new method for initializing the cohere_patcher docs(weave): Update docs to reuse the new method for initializing the cohere_patcher Jan 6, 2025
Commit (wandb@adb740b)
introduced a change that moved the cohere patcher initialization to a
method: get_cohere_patcher. This resulted in a error accodring to the Cohere integrations docs
which counted on the weave.integrations.cohere.cohere_sdk to provide
"cohere_patcher" variable.
@jamie-rasmussen
Copy link
Collaborator

/approve 0a9f18e

@jamie-rasmussen
Copy link
Collaborator

Thank you for the excellent PR description!

@jamie-rasmussen
Copy link
Collaborator

Our CI system doesn't work with branches in forked repos so I cloned this and merged it separately. Thank you for the contribution!

@github-actions github-actions bot locked and limited conversation to collaborators Jan 15, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants