支持局域网 GPU OCR 服务,配置方式类似 Ollama。
This commit is contained in:
@@ -61,6 +61,8 @@ def run_migrations() -> None:
|
||||
alters.append("ADD COLUMN openai_model VARCHAR(128)")
|
||||
if "openai_api_key" not in ss_columns:
|
||||
alters.append("ADD COLUMN openai_api_key VARCHAR(512)")
|
||||
if "ocr_service_url" not in ss_columns:
|
||||
alters.append("ADD COLUMN ocr_service_url VARCHAR(256)")
|
||||
if alters:
|
||||
with engine.begin() as conn:
|
||||
for clause in alters:
|
||||
|
||||
Reference in New Issue
Block a user