Skip to content

Conversation

OliverBryant
Copy link
Collaborator

fix: #4079

@XprobeBot XprobeBot added this to the v1.x milestone Sep 28, 2025
return Response(content=image_list, media_type="application/json")
except asyncio.CancelledError:
err_str = f"The request has been cancelled: {request_id}"
err_str = f"The request has been cancelled: {request_id or 'unknown'}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems irrelevant.

if not prompt:
raise HTTPException(status_code=400, detail="Prompt is required")

if len(prompt) > 1000:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't actually need this check.

return Response(content=video_list, media_type="application/json")
except asyncio.CancelledError:
err_str = f"The request has been cancelled: {request_id}"
err_str = f"The request has been cancelled: {request_id or 'unknown'}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto.

async def _stream_image_edit(
self, model_ref, images, mask, prompt, size, response_format, n
):
"""Stream image editing progress and results"""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The image_to_image and so forth do not support stream yet, can this functionality work?

self._model_uid = model_uid
self._base_url = base_url
self.auth_headers = auth_headers
# 设置更长的默认超时,因为图像编辑需要很长时间
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comments should be English only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

支持openai图像最新编辑接口
3 participants