I am trying to edit image using gpt-image-1.5. According to the docs I see that the output-formatcan either be png, webp and jpeg but png will be default.
api-reference
output_format
string or null
Optional
Defaults to png
The format in which the generated images are returned. This parameter is only supported for the GPT image models. Must be one of png, jpeg, or webp. The default value is png.
But when I try to generate a webp image I get this error
response = await client.images.edit(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/jobs/continuous/webjob/q3a40e31.dcd/.venv/lib/python3.11/site-packages/openai/resources/images.py", line 1411, in edit
return await self._post(
^^^^^^^^^^^^^^^^^
File "/tmp/jobs/continuous/webjob/q3a40e31.dcd/.venv/lib/python3.11/site-packages/openai/_base_client.py", line 1881, in post
return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/jobs/continuous/webjob/q3a40e31.dcd/.venv/lib/python3.11/site-packages/openai/_base_client.py", line 1666, in request
raise self._make_status_error_from_response(err.response) from None
openai.BadRequestError: Error code: 400 - {'error': {'message': "Invalid value: 'webp'. Supported values are: 'png' and 'jpeg'.", 'type': 'invalid_request_error', 'param': 'output_format', 'code': 'invalid_value'}}
Any help appreciated

