From 5a0284dd58d2cda4f6063da5bc2e6758057dd92c Mon Sep 17 00:00:00 2001 From: ishaan-jaff Date: Fri, 13 Oct 2023 21:23:00 -0700 Subject: [PATCH] (fix) fix linting errors --- litellm/llms/cohere.py | 2 +- litellm/llms/huggingface_restapi.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/litellm/llms/cohere.py b/litellm/llms/cohere.py index 4f97ef0c08..001c6ba269 100644 --- a/litellm/llms/cohere.py +++ b/litellm/llms/cohere.py @@ -188,7 +188,7 @@ def completion( def embedding( model: str, input: list, - api_key: str, + api_key: Optional[str] = None, logging_obj=None, model_response=None, encoding=None, diff --git a/litellm/llms/huggingface_restapi.py b/litellm/llms/huggingface_restapi.py index 6aba450c35..93c6a9a089 100644 --- a/litellm/llms/huggingface_restapi.py +++ b/litellm/llms/huggingface_restapi.py @@ -324,8 +324,8 @@ def completion( def embedding( model: str, input: list, - api_key: str, - api_base: str, + api_key: Optional[str] = None, + api_base: Optional[str] = None, logging_obj=None, model_response=None, encoding=None,