Bug while image editing/ or api docs

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

I tried generate with webp: that works fine.

I tried edit with webp output_format: that works fine

While you get a 404, perhaps you can capture the exact body of the request parameter dict into the the OpenAI .images() method, and ensure an updated OpenAI client (which I do not use).

What was sent as POST edits, although the actual request is form-data:

{
  "model": "gpt-image-1.5",
  "prompt": "Create a new picture from this image: watercolor painting, with faint pencil outlines, and wet bleeding watercolor showing the brush strokes.",
  "size": "1024x1024",
  "output_format": "webp",
  "output_compression": 100,
  "user": "image-editor-user",
  "quality": "medium",
  "background": "opaque",
  "n": 1,
  "input_fidelity": "low",
  "image": [
    "<canvas image.png bytes>"
  ]
}