优化api接口逻辑

This commit is contained in:
puke
2025-11-20 14:28:23 +08:00
parent 68e3eedcd2
commit e2eac8798c
3 changed files with 6 additions and 7 deletions

View File

@@ -26,7 +26,7 @@ class FrameRenderRequest(BaseModel):
)
title: Optional[str] = Field(None, description="Frame title (optional)")
text: str = Field(..., description="Frame text content")
image: str = Field(..., description="Image path or URL")
image: Optional[str] = Field(None, description="Image path or URL (optional)")
class Config:
json_schema_extra = {