refac
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user