From cf8c76d24b62f56c61f27c9ff070d3e27dc6b51d Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Wed, 16 Oct 2024 11:47:44 +0530 Subject: [PATCH] fix RerankResponse make meta optional (#6248) --- litellm/types/rerank.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/types/rerank.py b/litellm/types/rerank.py index b4765c0e6a..d016021fb8 100644 --- a/litellm/types/rerank.py +++ b/litellm/types/rerank.py @@ -22,7 +22,7 @@ class RerankRequest(BaseModel): class RerankResponse(BaseModel): id: str results: List[dict] # Contains index and relevance_score - meta: dict # Contains api_version and billed_units + meta: Optional[dict] = None # Contains api_version and billed_units # Define private attributes using PrivateAttr _hidden_params: dict = PrivateAttr(default_factory=dict)