mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-06 08:16:43 +00:00
style: apply black formatting
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
18f75241e1
commit
891718d064
2 changed files with 4 additions and 5 deletions
|
|
@ -108,7 +108,9 @@ class DeepinfraRerankConfig(BaseRerankConfig):
|
|||
# Start with the basic parameters
|
||||
optional_rerank_params = {}
|
||||
if query:
|
||||
optional_rerank_params["queries"] = [query] # Single-element array; Deepinfra broadcasts it across all documents
|
||||
optional_rerank_params["queries"] = [
|
||||
query
|
||||
] # Single-element array; Deepinfra broadcasts it across all documents
|
||||
|
||||
if non_default_params is not None:
|
||||
for k, v in non_default_params.items():
|
||||
|
|
|
|||
|
|
@ -42,7 +42,6 @@ class TestDeepinfraRerankTransform:
|
|||
with pytest.raises(ValueError, match="Deepinfra API Base is required"):
|
||||
self.config.get_complete_url(None, model)
|
||||
|
||||
|
||||
def test_map_cohere_rerank_params_basic(self):
|
||||
"""Test basic parameter mapping for DeepInfra rerank."""
|
||||
params = self.config.map_cohere_rerank_params(
|
||||
|
|
@ -238,9 +237,7 @@ class TestDeepinfraRerankTransform:
|
|||
query="query1",
|
||||
documents=documents,
|
||||
)
|
||||
assert params["queries"] == [
|
||||
"query1"
|
||||
], f"Failed for {num_docs} documents"
|
||||
assert params["queries"] == ["query1"], f"Failed for {num_docs} documents"
|
||||
|
||||
def test_get_error_class_basic(self):
|
||||
"""Test error class generation for basic error."""
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue