You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Confirm this is a feature request for the Python library and not the underlying OpenAI API.
This is a feature request for the Python library
Describe the feature or improvement you're requesting
Description
The _deployments_endpoints set defined in src/openai/lib/azure.py is missing the images/edit endpoints. This may cause issues when working with Azure deployments for editing images.
Suggested Fix
Include the missing endpoint "/images/edit" in the _deployments_endpoints set.
_deployments_endpoints=set(
[
"/completions",
"/chat/completions",
"/embeddings",
"/audio/transcriptions",
"/audio/translations",
"/audio/speech",
"/images/generations",
"/images/edits", # Add this line
]
)
Steps to Reproduce
Use an Azure deployment for the images/edit endpoint.
Observe that the endpoint is not handled correctly due to its absence in _deployments_endpoints.
The text was updated successfully, but these errors were encountered:
sandeeprawat
changed the title
Missing images/edit Endpoints in _deployments_endpoints
Missing images/edits Endpoints in _deployments_endpoints
Apr 30, 2025
Confirm this is a feature request for the Python library and not the underlying OpenAI API.
Describe the feature or improvement you're requesting
Description
The _deployments_endpoints set defined in src/openai/lib/azure.py is missing the images/edit endpoints. This may cause issues when working with Azure deployments for editing images.
https://github.com/openai/openai-python/blob/main/src/openai/lib/azure.py#19-19
Relevant Code
Suggested Fix
Include the missing endpoint "/images/edit" in the _deployments_endpoints set.
Steps to Reproduce
Use an Azure deployment for the images/edit endpoint.
Observe that the endpoint is not handled correctly due to its absence in _deployments_endpoints.
Environment
Repository: openai/openai-python
File: src/openai/lib/azure.py
Commit: fad098f
Additional context
No response
The text was updated successfully, but these errors were encountered: