refactor(azure.py): working client init logic in azure image generation

This commit is contained in:
Krrish Dholakia 2025-03-11 14:22:25 -07:00
parent 152bc67d22
commit 2c2404dac9
2 changed files with 10 additions and 18 deletions

View file

@ -4544,6 +4544,8 @@ def image_generation( # noqa: PLR0915
**non_default_params,
)
litellm_params_dict = get_litellm_params(**kwargs)
logging: Logging = litellm_logging_obj
logging.update_environment_variables(
model=model,
@ -4614,6 +4616,7 @@ def image_generation( # noqa: PLR0915
aimg_generation=aimg_generation,
client=client,
headers=headers,
litellm_params=litellm_params_dict,
)
elif (
custom_llm_provider == "openai"