(fix) use OpenAI organization in ahealth_check

This commit is contained in:
ishaan-jaff 2024-01-30 11:45:22 -08:00
parent 42005ad964
commit 2806a2e99f
3 changed files with 7 additions and 2 deletions

View file

@ -3227,6 +3227,7 @@ async def ahealth_check(
or custom_llm_provider == "text-completion-openai"
):
api_key = model_params.get("api_key") or get_secret("OPENAI_API_KEY")
organization = model_params.get("organization")
timeout = (
model_params.get("timeout")
@ -3244,6 +3245,7 @@ async def ahealth_check(
mode=mode,
prompt=prompt,
input=input,
organization=organization,
)
else:
if mode == "embedding":