add openai api

This commit is contained in:
2026-06-22 11:06:01 +08:00
parent 30ead8fa43
commit ac4078d4af
9 changed files with 397 additions and 0 deletions
+3
View File
@@ -7,4 +7,7 @@ OPENOCR_AUTO_DOWNLOAD=true
OPENOCR_LAYOUT_THRESHOLD=0.4
OPENOCR_MAX_LENGTH=2048
OPENOCR_CORS_ORIGINS=*
# Optional. When set, /v1/* endpoints require: Authorization: Bearer <key>
OPENOCR_API_KEY=
OPENOCR_OPENAI_MODEL=opendoc-0.1b
OPENOCR_LOG_LEVEL=info