This commit is contained in:
eycjur
2025-09-23 03:08:05 +00:00
parent f24d65b807
commit 3ff21bf30c
2 changed files with 3 additions and 6 deletions
+1
View File
@@ -29,6 +29,7 @@ class AzureFoundryModelInfo(BaseLLMModelInfo):
api_version = (
api_version
or litellm.api_version
or get_secret_str("AZURE_API_VERSION")
or get_secret_str("AZURE_AI_API_VERSION")
)
return api_version
@@ -13,7 +13,7 @@ class AzureFoundryFluxImageEditConfig(OpenAIImageEditConfig):
"""
Azure AI Foundry FLUX image edit config
Supports FLUX models including FLUX-1.1-pro and FLUX-1-kontext-pro for image editing.
Supports FLUX models including FLUX-1-kontext-pro for image editing.
Azure AI Foundry FLUX models handle image editing through the /images/edits endpoint,
same as standard Azure OpenAI models. The request format uses multipart/form-data
@@ -28,11 +28,7 @@ class AzureFoundryFluxImageEditConfig(OpenAIImageEditConfig):
) -> dict:
"""
Validate Azure AI Foundry environment and set up authentication
Uses Api-Key header format like Azure OpenAI
Azure AI Foundry uses the same authentication format as Azure OpenAI:
- Header: Api-Key (not Authorization Bearer)
- Endpoint: /openai/deployments/{model}/images/edits (for image editing)
Uses Api-Key header format
"""
api_key = AzureFoundryModelInfo.get_api_key(api_key)