mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
petals fixes
This commit is contained in:
parent
f6ccadabc8
commit
385640b743
4 changed files with 9 additions and 6 deletions
|
@ -1122,6 +1122,9 @@ def get_llm_provider(model: str, custom_llm_provider: Optional[str] = None):
|
|||
## nlp_cloud
|
||||
elif model in litellm.nlp_cloud_models:
|
||||
custom_llm_provider = "nlp_cloud"
|
||||
## petals
|
||||
elif model in litellm.petals_models:
|
||||
custom_llm_provider = "petals"
|
||||
|
||||
if custom_llm_provider is None or custom_llm_provider=="":
|
||||
raise ValueError(f"LLM Provider NOT provided. Pass in the LLM provider you are trying to call. E.g. For 'Huggingface' inference endpoints pass in `completion(model='huggingface/{model}',..)` Learn more: https://docs.litellm.ai/docs/providers")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue