-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
59 lines (47 loc) · 1.94 KB
/
.env.example
File metadata and controls
59 lines (47 loc) · 1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Invoice Processor - Environment Variables
# Copy this file to .env and fill in your values
# =============================================================================
# LLM Configuration (Required for PDF/Image processing)
# =============================================================================
# API key for your LLM provider (OpenRouter, OpenAI, etc.)
# Get your key from: https://openrouter.ai/keys
LLM_API_KEY=
# Base URL for OpenAI-compatible API
# Default: https://openrouter.ai/api/v1
# OpenAI Direct: https://api.openai.com/v1
# Local (Ollama): http://localhost:11434/v1
LLM_BASE_URL=https://openrouter.ai/api/v1
# Model for text extraction from PDF
# Run `invoice-processor models` to see available options
LLM_MODEL=anthropic/claude-3.5-sonnet
# Model for vision/image extraction
# Must support image input
LLM_VISION_MODEL=anthropic/claude-3.5-sonnet
# =============================================================================
# Server Configuration (for `serve` command)
# =============================================================================
# HTTP server address
# SERVER_ADDRESS=:8080
# =============================================================================
# Provider Examples
# =============================================================================
# --- OpenRouter (Default) ---
# LLM_API_KEY=sk-or-v1-xxx
# LLM_BASE_URL=https://openrouter.ai/api/v1
# LLM_MODEL=anthropic/claude-3.5-sonnet
# LLM_VISION_MODEL=anthropic/claude-3.5-sonnet
# --- OpenAI Direct ---
# LLM_API_KEY=sk-xxx
# LLM_BASE_URL=https://api.openai.com/v1
# LLM_MODEL=gpt-4o
# LLM_VISION_MODEL=gpt-4o
# --- Local LLM (Ollama) ---
# LLM_API_KEY=not-needed
# LLM_BASE_URL=http://localhost:11434/v1
# LLM_MODEL=llava
# LLM_VISION_MODEL=llava
# --- Google Gemini (via OpenAI-compatible API) ---
# LLM_API_KEY=your-api-key
# LLM_BASE_URL=https://your-gemini-api-endpoint/v1
# LLM_MODEL=gemini-3-flash-preview
# LLM_VISION_MODEL=gemini-3-flash-preview