mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-07 02:59:05 +00:00
Update utils.py
Allow using custom models and on-demand deployments
This commit is contained in:
parent
efb1ee66d7
commit
8b830358e3
1 changed files with 1 additions and 1 deletions
|
|
@ -4417,7 +4417,7 @@ def get_llm_provider(
|
|||
dynamic_api_key = get_secret("DEEPSEEK_API_KEY")
|
||||
elif custom_llm_provider == "fireworks_ai":
|
||||
# fireworks is openai compatible, we just need to set this to custom_openai and have the api_base be https://api.fireworks.ai/inference/v1
|
||||
if not model.startswith("accounts/fireworks/models"):
|
||||
if not model.startswith("accounts/"):
|
||||
model = f"accounts/fireworks/models/{model}"
|
||||
api_base = api_base or "https://api.fireworks.ai/inference/v1"
|
||||
dynamic_api_key = (
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue