fix install on 3.8

This commit is contained in:
Ishaan Jaff 2024-08-27 17:09:16 -07:00
parent b3892b871d
commit 37ed201c50
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ class CohereRerank(BaseLLM):
model: str,
api_key: str,
query: str,
documents: list[Union[str, Dict[str, Any]]],
documents: List[Union[str, Dict[str, Any]]],
top_n: Optional[int] = None,
rank_fields: Optional[List[str]] = None,
return_documents: Optional[bool] = True,

View File

@ -23,7 +23,7 @@ class TogetherAIRerank(BaseLLM):
model: str,
api_key: str,
query: str,
documents: list[Union[str, Dict[str, Any]]],
documents: List[Union[str, Dict[str, Any]]],
top_n: Optional[int] = None,
rank_fields: Optional[List[str]] = None,
return_documents: Optional[bool] = True,