mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
add support for fireworks ai health check
This commit is contained in:
parent
d2e286e45d
commit
b1a5b94211
1 changed files with 12 additions and 0 deletions
|
@ -5050,6 +5050,18 @@ async def ahealth_check(
|
||||||
model_params["prompt"] = prompt
|
model_params["prompt"] = prompt
|
||||||
await litellm.aimage_generation(**model_params)
|
await litellm.aimage_generation(**model_params)
|
||||||
response = {}
|
response = {}
|
||||||
|
elif "*" in model:
|
||||||
|
from litellm.litellm_core_utils.llm_request_utils import (
|
||||||
|
pick_cheapest_model_from_llm_provider,
|
||||||
|
)
|
||||||
|
|
||||||
|
# this is a wildcard model, we need to pick a random model from the provider
|
||||||
|
cheapest_model = pick_cheapest_model_from_llm_provider(
|
||||||
|
custom_llm_provider=custom_llm_provider
|
||||||
|
)
|
||||||
|
model_params["model"] = cheapest_model
|
||||||
|
await acompletion(**model_params)
|
||||||
|
response = {} # args like remaining ratelimit etc.
|
||||||
else: # default to completion calls
|
else: # default to completion calls
|
||||||
await acompletion(**model_params)
|
await acompletion(**model_params)
|
||||||
response = {} # args like remaining ratelimit etc.
|
response = {} # args like remaining ratelimit etc.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue