| # -- InvoiceGuard Environment Variables -------------------------- | |
| # | |
| # Copy this file to .env and fill in your values: | |
| # cp .env.example .env | |
| # | |
| # These are read by inference.py via python-dotenv. | |
| # Never commit .env to git (it's already in .gitignore). | |
| # ---------------------------------------------------------------- | |
| # 1. API_BASE_URL -- The LLM API endpoint. | |
| # OpenAI: https://api.openai.com/v1 | |
| # HF Inference: https://router.huggingface.co/v1 | |
| # Local/custom: http://localhost:8080/v1 | |
| API_BASE_URL=https://api.openai.com/v1 | |
| # 2. MODEL_NAME -- The model identifier for inference. | |
| # OpenAI: gpt-4.1-mini, gpt-5.4-mini, etc. | |
| # HF: Qwen/Qwen2.5-72B-Instruct, meta-llama/Llama-3.1-8B-Instruct, etc. | |
| MODEL_NAME=gpt-4.1-mini | |
| # 3. HF_TOKEN -- Your Hugging Face / API key. | |
| # This is the PRIMARY key used by the inference script for LLM calls. | |
| # For OpenAI models: put your OpenAI key here (sk-...) | |
| # For HF models: put your HF token here (hf_...) | |
| # Get HF token at: https://huggingface.co/settings/tokens | |
| HF_TOKEN= | |
| # 5. LOCAL_IMAGE_NAME -- Docker image name for containerized mode. | |
| # Only needed if running inference against a Docker container | |
| # instead of the local environment directly. | |
| # Build first: docker build -t invoiceguard . | |
| # LOCAL_IMAGE_NAME=invoiceguard | |