feat: add mineru model

This commit is contained in:
2026-01-05 17:30:54 +08:00
parent 3870c108b2
commit 6ea37c9380
5 changed files with 142 additions and 10 deletions

View File

@@ -25,6 +25,7 @@ class ImageOCRRequest(BaseModel):
image_url: str | None = Field(None, description="URL to fetch the image from")
image_base64: str | None = Field(None, description="Base64-encoded image data")
model_name: str = Field("mineru", description="Name of the model to use for OCR")
@model_validator(mode="after")
def validate_input(self):