mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
updates
This commit is contained in:
parent
0ea59702fd
commit
fcaf514546
2 changed files with 12 additions and 10 deletions
|
@ -48,6 +48,8 @@ class HuggingfaceRestAPILLM:
|
|||
completion_url: str = ""
|
||||
if "https" in model:
|
||||
completion_url = model
|
||||
elif custom_api_base:
|
||||
completion_url = custom_api_base
|
||||
elif "HF_API_BASE" in os.environ:
|
||||
completion_url = os.getenv("HF_API_BASE", "")
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue