mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
add support for friendli dedicated endpoint
This commit is contained in:
parent
f35af3bf1c
commit
dd10da4d46
3 changed files with 65 additions and 1 deletions
|
@ -4486,7 +4486,10 @@ def get_llm_provider(
|
|||
or get_secret("TOGETHER_AI_TOKEN")
|
||||
)
|
||||
elif custom_llm_provider == "friendliai":
|
||||
api_base = "https://inference.friendli.ai/v1"
|
||||
api_base = (
|
||||
get_secret("FRIENDLI_API_BASE")
|
||||
or "https://inference.friendli.ai/v1"
|
||||
)
|
||||
dynamic_api_key = (
|
||||
api_key
|
||||
or get_secret("FRIENDLIAI_API_KEY")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue