mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 12:25:20 +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
|
negative_prompt: Optional[str] = None
|
||||||
|
|
||||||
|
|
||||||
|
GenerateImageForm = CreateImageForm # Alias for backward compatibility
|
||||||
|
|
||||||
|
|
||||||
def get_image_data(data: str, headers=None):
|
def get_image_data(data: str, headers=None):
|
||||||
try:
|
try:
|
||||||
# if data url
|
# if data url
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue