支持局域网 GPU OCR 服务,配置方式类似 Ollama。

This commit is contained in:
dekun
2026-06-28 14:16:06 +08:00
parent 14bf314544
commit ff0c103dc5
19 changed files with 305 additions and 9 deletions
+3
View File
@@ -25,6 +25,9 @@ class Settings(BaseSettings):
OCR_MAX_SIDE: int = 1280
UPLOAD_MAX_SIDE: int = 2048
OCR_WARMUP: bool = True
OCR_SERVICE_URL: str = ""
OCR_API_KEY: str = ""
OCR_USE_GPU: bool = False
class Config:
env_file = ".env"