diff --git a/.env.example b/.env.example index 9f10a6f..eec0064 100644 --- a/.env.example +++ b/.env.example @@ -16,7 +16,7 @@ AI_PROVIDER=gemini # For AI_PROVIDER=ollama: # AI_BASE_URL=http://localhost:11434 -# AI_MODEL=qwen3.5:2b +# AI_MODEL=glm-ocr # --- SMTP (optional — needed for OTP emails and report delivery) --- # SMTP_HOST=smtp.example.com diff --git a/install.sh b/install.sh index 094e13d..45b68c1 100755 --- a/install.sh +++ b/install.sh @@ -176,7 +176,7 @@ case "$AI_CHOICE" in ;; 3) AI_PROVIDER="ollama" - AI_MODEL="qwen3.5:2b" + AI_MODEL="glm-ocr" # Ollama's install script requires zstd if ! command -v zstd &>/dev/null; then info "Installing zstd (required by Ollama)..." diff --git a/internal/ai/ollama.go b/internal/ai/ollama.go index c4b28fa..df15151 100644 --- a/internal/ai/ollama.go +++ b/internal/ai/ollama.go @@ -67,7 +67,7 @@ func (p *ollamaProvider) ExtractReceipt(imagePath string) (*ReceiptData, error) model := os.Getenv("AI_MODEL") if model == "" { - model = "qwen3.5:2b" + model = "glm-ocr" } b64Data := base64.StdEncoding.EncodeToString(imageData)