feat: implement Mistral BYOK feature for OCR processing with user profile integration

This commit is contained in:
2025-12-21 15:16:41 +05:30
parent 0f277d6b3d
commit 8919942322
6 changed files with 80 additions and 9 deletions

View File

@@ -32,10 +32,9 @@ ai:
api_key: "${AI_API_KEY}"
# Mistral OCR for document parsing
# Note: API key is set per-user in Profile settings (BYOK)
mistral:
api_key: "${MISTRAL_API_KEY}"
ocr_model: "mistral-ocr-latest"
max_pages_per_request: 8
max_retries: 2 # Max retry attempts per chunk
timeout_secs: 120 # Request timeout in seconds