feat: add mineru model
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user