mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 03:34:10 +00:00
support dynamic api base
This commit is contained in:
parent
e7fbb7e40a
commit
c2efb260c1
1 changed files with 2 additions and 1 deletions
|
@ -4487,7 +4487,8 @@ def get_llm_provider(
|
||||||
)
|
)
|
||||||
elif custom_llm_provider == "friendliai":
|
elif custom_llm_provider == "friendliai":
|
||||||
api_base = (
|
api_base = (
|
||||||
get_secret("FRIENDLI_API_BASE")
|
api_base
|
||||||
|
or get_secret("FRIENDLI_API_BASE")
|
||||||
or "https://inference.friendli.ai/v1"
|
or "https://inference.friendli.ai/v1"
|
||||||
)
|
)
|
||||||
dynamic_api_key = (
|
dynamic_api_key = (
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue