Series datasheets were stalling extract_pattern on DeepSeek vision; catalog specs are enough for chip R/C/L. Pattern PDF is a 90s fallback only. Co-authored-by: Cursor <cursoragent@cursor.com>
80 lines
3.3 KiB
Bash
80 lines
3.3 KiB
Bash
# Pinscope Backend — Environment Variables
|
|
# Copy to backend/.env and fill in values. Only DEEPSEEK_API_KEY is required.
|
|
|
|
# -- AI (DeepSeek, default) --------------------------------------------------
|
|
# Key from https://platform.deepseek.com/
|
|
DEEPSEEK_API_KEY=sk-...
|
|
DEEPSEEK_BASE_URL=https://api.deepseek.com
|
|
DEEPSEEK_MODEL=deepseek-v4-flash
|
|
DEEPSEEK_VISION_MODEL=deepseek-v4-flash-vision-exp
|
|
# enabled (default) | disabled — thinking mode on DeepSeek V4
|
|
DEEPSEEK_THINKING=enabled
|
|
DEEPSEEK_REASONING_EFFORT=medium
|
|
# PDF ingest (DeepSeek cannot take native PDFs)
|
|
# DEEPSEEK_PDF_MAX_CHARS=500000
|
|
# DEEPSEEK_PDF_IMAGE_PAGES=32
|
|
|
|
# Per-stage DeepSeek model overrides (leave empty to use the defaults below)
|
|
# Extraction stages default to the vision model so pin diagrams are readable.
|
|
# Review defaults to deepseek-v4-pro.
|
|
# MODEL_PINTABLE_DEEPSEEK=deepseek-v4-flash-vision-exp
|
|
# MODEL_PATTERN_DEEPSEEK=deepseek-v4-flash
|
|
# MODEL_SPECS_DEEPSEEK=deepseek-v4-flash-vision-exp
|
|
# MODEL_VALIDATION_DEEPSEEK=deepseek-v4-pro
|
|
# MODEL_AUTO_RESOLVE_DEEPSEEK=deepseek-v4-flash
|
|
# MODEL_NORMALIZE_DEEPSEEK=deepseek-v4-flash
|
|
|
|
# -- AI provider routing -----------------------------------------------------
|
|
# Default provider for every stage; per-stage env vars override.
|
|
# Valid values: deepseek | anthropic | gemini
|
|
PROVIDER_DEFAULT=deepseek
|
|
# PROVIDER_VALIDATION=deepseek
|
|
# PROVIDER_AUTO_RESOLVE=deepseek
|
|
|
|
# -- Anthropic (optional fallback) -------------------------------------------
|
|
# ANTHROPIC_API_KEY=sk-ant-...
|
|
# ANTHROPIC_MODEL=claude-sonnet-4-6
|
|
# MODEL_PINTABLE=
|
|
# MODEL_PATTERN=
|
|
# MODEL_VALIDATION=
|
|
|
|
# -- Gemini (optional) -------------------------------------------------------
|
|
# GEMINI_API_KEY=
|
|
# GEMINI_MODEL=gemini-3-flash-preview
|
|
# MODEL_VALIDATION_GEMINI=
|
|
|
|
# -- Per-stage fallback ------------------------------------------------------
|
|
# If set, the stage retries once with FALLBACK_PROVIDER_<STAGE> /
|
|
# FALLBACK_MODEL_<STAGE> when the primary provider raises.
|
|
# FALLBACK_PROVIDER_VALIDATION=anthropic
|
|
# FALLBACK_MODEL_VALIDATION=claude-sonnet-4-6
|
|
|
|
# -- Storage -----------------------------------------------------------------
|
|
# Set GCS_BUCKET to store projects/library in Google Cloud Storage.
|
|
# Leave empty for local mode (uses the data/ directory).
|
|
GCS_BUCKET=
|
|
|
|
# -- CORS --------------------------------------------------------------------
|
|
# Frontend URL(s), JSON list
|
|
CORS_ORIGINS=["http://localhost:3000","http://127.0.0.1:3000","http://localhost:18742","http://127.0.0.1:18742"]
|
|
|
|
# -- DigiKey (optional) ------------------------------------------------------
|
|
# Optional third datasheet source and parameter-based passive auto-resolve.
|
|
# Datasheets are fetched from LCSC (no key) and TI first; DigiKey is extra.
|
|
# DIGIKEY_CLIENT_ID=
|
|
# DIGIKEY_CLIENT_SECRET=
|
|
# DIGIKEY_ENVIRONMENT=production
|
|
# DIGIKEY_LOCALE_SITE=US
|
|
# DIGIKEY_LOCALE_LANGUAGE=en
|
|
# DIGIKEY_LOCALE_CURRENCY=USD
|
|
|
|
# -- Email notifications (optional) ------------------------------------------
|
|
# Gmail API via domain-wide delegation. Leave EMAIL_SENDER empty to disable.
|
|
# Service account credentials come from GOOGLE_APPLICATION_CREDENTIALS.
|
|
EMAIL_SENDER=
|
|
EMAIL_FRONTEND_URL=
|
|
# Fixed admin email for pipeline-started notifications (leave empty to disable)
|
|
EMAIL_ADMIN_NOTIFY=
|
|
# Recipient for /api/contact form submissions (leave empty to disable)
|
|
CONTACT_RECIPIENT=
|