update litellm

This commit is contained in:
mrT23
2023-08-23 09:19:15 +03:00
parent 6599cbc7f2
commit 16150e9c84
2 changed files with 1 additions and 3 deletions

View File

@ -48,8 +48,6 @@ class AiHandler:
litellm.replicate_key = get_settings().replicate.key
if get_settings().get("HUGGINGFACE.KEY", None):
litellm.huggingface_key = get_settings().huggingface.key
if get_settings().get("HUGGINGFACE.KEY", None):
litellm.huggingface_key = get_settings().huggingface.key
except AttributeError as e:
raise ValueError("OpenAI key is required") from e