Skip to content

Commit 3ff21bf

Browse files
author
eycjur
committed
refactor
1 parent f24d65b commit 3ff21bf

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

litellm/llms/azure_ai/common_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ def api_version(self, api_version: Optional[str] = None) -> Optional[str]:
2929
api_version = (
3030
api_version
3131
or litellm.api_version
32+
or get_secret_str("AZURE_API_VERSION")
3233
or get_secret_str("AZURE_AI_API_VERSION")
3334
)
3435
return api_version

litellm/llms/azure_ai/image_edit/transformation.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class AzureFoundryFluxImageEditConfig(OpenAIImageEditConfig):
1313
"""
1414
Azure AI Foundry FLUX image edit config
1515
16-
Supports FLUX models including FLUX-1.1-pro and FLUX-1-kontext-pro for image editing.
16+
Supports FLUX models including FLUX-1-kontext-pro for image editing.
1717
1818
Azure AI Foundry FLUX models handle image editing through the /images/edits endpoint,
1919
same as standard Azure OpenAI models. The request format uses multipart/form-data
@@ -28,11 +28,7 @@ def validate_environment(
2828
) -> dict:
2929
"""
3030
Validate Azure AI Foundry environment and set up authentication
31-
Uses Api-Key header format like Azure OpenAI
32-
33-
Azure AI Foundry uses the same authentication format as Azure OpenAI:
34-
- Header: Api-Key (not Authorization Bearer)
35-
- Endpoint: /openai/deployments/{model}/images/edits (for image editing)
31+
Uses Api-Key header format
3632
"""
3733
api_key = AzureFoundryModelInfo.get_api_key(api_key)
3834

0 commit comments

Comments
 (0)