diff --git a/litellm/llms/huggingface_restapi.py b/litellm/llms/huggingface_restapi.py index edb9ca1e9..6b9c7274a 100644 --- a/litellm/llms/huggingface_restapi.py +++ b/litellm/llms/huggingface_restapi.py @@ -406,7 +406,7 @@ class Huggingface(BaseLLM): try: completion_response = response.json() if isinstance(completion_response, dict): - completion_response: List[Dict[str, Any]] = [completion_response] + completion_response = [completion_response] except: import traceback raise HuggingfaceError(