Skip to content

Commit

Permalink
docs(weave): Update cohere docs to reuse new patcher init method
Browse files Browse the repository at this point in the history
Commit (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.
  • Loading branch information
IvanKirchev committed Jan 6, 2025
1 parent 1959497 commit 0a9f18e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/docs/guides/integrations/cohere.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ Weave ops make results *reproducible* by automatically versioning code as you ex
import cohere
import os
import weave
from weave.integrations.cohere import cohere_patcher
from weave.integrations.cohere import get_cohere_patcher

# we need to patch before we create the client
cohere_patcher.attempt_patch()
get_cohere_patcher().attempt_patch()

co = cohere.Client(api_key=os.environ["COHERE_API_KEY"])

Expand Down

0 comments on commit 0a9f18e

Please sign in to comment.