mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
fix(azure.py): support health checks to text completion endpoints
This commit is contained in:
parent
0a76269541
commit
a7f182b8ec
3 changed files with 20 additions and 10 deletions
|
@ -3123,7 +3123,10 @@ async def ahealth_check(
|
|||
prompt=prompt,
|
||||
input=input,
|
||||
)
|
||||
elif custom_llm_provider == "openai":
|
||||
elif (
|
||||
custom_llm_provider == "openai"
|
||||
or custom_llm_provider == "text-completion-openai"
|
||||
):
|
||||
api_key = model_params.get("api_key") or get_secret("OPENAI_API_KEY")
|
||||
|
||||
timeout = (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue