forked from phoenix/litellm-mirror
bug fix
This commit is contained in:
parent
33615c11d8
commit
5e24bac8b3
2 changed files with 2 additions and 2 deletions
|
@ -433,7 +433,7 @@ def completion(
|
|||
model_response["model"] = model
|
||||
response = model_response
|
||||
|
||||
elif custom_llm_provider == "petals" or "chat.petals.dev" in litellm.api_base:
|
||||
elif custom_llm_provider == "petals" or (litellm.api_base and "chat.petals.dev" in litellm.api_base):
|
||||
url = "https://chat.petals.dev/api/v1/generate"
|
||||
import requests
|
||||
prompt = " ".join([message["content"] for message in messages])
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[tool.poetry]
|
||||
name = "litellm"
|
||||
version = "0.1.419"
|
||||
version = "0.1.420"
|
||||
description = "Library to easily interface with LLM API providers"
|
||||
authors = ["BerriAI"]
|
||||
license = "MIT License"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue