mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
(fix) use api_base in health checks
This commit is contained in:
parent
bf403dc02e
commit
c315c18695
2 changed files with 11 additions and 4 deletions
|
@ -3358,12 +3358,15 @@ async def ahealth_check(
|
|||
or default_timeout
|
||||
)
|
||||
|
||||
api_base = model_params.get("api_base") or get_secret("OPENAI_API_BASE")
|
||||
|
||||
response = await openai_chat_completions.ahealth_check(
|
||||
model=model,
|
||||
messages=model_params.get(
|
||||
"messages", None
|
||||
), # Replace with your actual messages list
|
||||
api_key=api_key,
|
||||
api_base=api_base,
|
||||
timeout=timeout,
|
||||
mode=mode,
|
||||
prompt=prompt,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue