mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-11 20:05:19 +00:00
refac
This commit is contained in:
parent
a4fd26b478
commit
75efa4f931
1 changed files with 3 additions and 0 deletions
|
|
@ -360,6 +360,9 @@ class CreateImageForm(BaseModel):
|
|||
negative_prompt: Optional[str] = None
|
||||
|
||||
|
||||
GenerateImageForm = CreateImageForm # Alias for backward compatibility
|
||||
|
||||
|
||||
def get_image_data(data: str, headers=None):
|
||||
try:
|
||||
# if data url
|
||||
|
|
|
|||
Loading…
Reference in a new issue