test(test_bedrock_completion.py): add testing for bedrock cohere rerank

This commit is contained in:
Krrish Dholakia 2025-02-20 14:12:51 -08:00
parent d7efe22d6e
commit 4e7d3523af

View file

@ -2186,6 +2186,16 @@ class TestBedrockRerank(BaseLLMRerankTest):
}
class TestBedrockCohereRerank(BaseLLMRerankTest):
def get_custom_llm_provider(self) -> litellm.LlmProviders:
return litellm.LlmProviders.BEDROCK
def get_base_rerank_call_args(self) -> dict:
return {
"model": "bedrock/arn:aws:bedrock:us-west-2::foundation-model/cohere.rerank-v3-5:0",
}
@pytest.mark.parametrize(
"messages, continue_message_index",
[