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
{{ message }}
Repository navigation
Python: [Feature]: Support the detail field in OpenAI Chat API image_url payload #4616
Description:
According to OpenAI’s official API documentation (link), the image_url property allows an optional detail field with values "auto", "low", or "high" for specifying image resolution or processing detail.
Currently, in _chat_client.py, only the url key is supported. The detail field is not included and cannot currently be configured.
Suggested Enhancement:
Add support for the detail field in the image_url payload, making it possible to specify the detail level when returning image URLs.
Optionally, allow the detail level to be set via a parameter, or configuration, with a sensible default (e.g., "auto").
Rationale:
Supporting the detail field is required for full compatibility with the OpenAI API and allows users to adjust image processing quality in chat completions.
changed the title [-][Feature]: Support the `detail` field in OpenAI Chat API `image_url` payload[/-][+]Python: [Feature]: Support the `detail` field in OpenAI Chat API `image_url` payload[/+]on Mar 11, 2026
Activity
[-][Feature]: Support the `detail` field in OpenAI Chat API `image_url` payload[/-][+]Python: [Feature]: Support the `detail` field in OpenAI Chat API `image_url` payload[/+]Support detail field in OpenAI image_url payload (microsoft#4616)
Simplify detail extraction from additional_properties (microsoft#4616)
Python: Support `detail` field in OpenAI Chat API `image_url` payload (…