Skip to content

Commit

Permalink
Update bedrock_client.py
Browse files Browse the repository at this point in the history
  • Loading branch information
billytrend-cohere authored Dec 4, 2024
1 parent 9fe3df8 commit a878da9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cohere/bedrock_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def __init__(
)

def rerank(self, *, query, documents, model = ..., top_n = ..., rank_fields = ..., return_documents = ..., max_chunks_per_doc = ..., request_options = None):
raise NotImplementedError("Please use cohere.BedrockClientV2 instead: method rerank is not available in the v1 client, cohere.BedrockClient.")
raise NotImplementedError("Please use cohere.BedrockClientV2 instead: Rerank API on Bedrock is not supported with cohere.BedrockClient for this model.")

class BedrockClientV2(AwsClientV2):
def __init__(
Expand Down

0 comments on commit a878da9

Please sign in to comment.