Skip to content

Commit

Permalink
cohere - remove warning (#805)
Browse files Browse the repository at this point in the history
  • Loading branch information
anakin87 authored Jun 12, 2024
1 parent eb0722b commit 9f5a460
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,8 @@ def __init__(
):
"""
Instantiates a `CohereGenerator` component.
NOTE: Cohere discontinued the `generate` API, so this generator is a mere wrapper
around `CohereChatGenerator` provided for backward compatibility.
"""
logger.warning(
"The 'generate' API is marked as Legacy and is no longer maintained by Cohere. "
"We recommend to use the CohereChatGenerator instead."
)

# Note we have to call super() like this because of the way components are dynamically built with the decorator
super(CohereGenerator, self).__init__(api_key, model, streaming_callback, api_base_url, None, **kwargs) # noqa

Expand Down

0 comments on commit 9f5a460

Please sign in to comment.