diff --git a/litellm/utils.py b/litellm/utils.py index 48fdf80c59f..76292b3a42d 100644 --- a/litellm/utils.py +++ b/litellm/utils.py @@ -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 = (