market-assistant/.env.example

36 lines
1.6 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# =============================================================================
# 唯一环境变量模板:复制为同目录 .env 后填写(.env 勿提交仓库)
# copy .env.example .env Windows
# cp .env.example .env Linux/macOS
# =============================================================================
# --- 数据工作区根目录(可选)---
# 不填时默认为本仓库根目录market_assistant数据写在 ./data/JD/。
# 若数据盘与代码分离,可设为绝对路径(须可写,运行时会自动创建 data/JD
# LOW_GI_PROJECT_ROOT=D:\data\low-gi-workspace
# --- Django ---
DJANGO_SECRET_KEY=please-change-me
DJANGO_DEBUG=True
DJANGO_ALLOWED_HOSTS=localhost,127.0.0.1
# 可选SQLite 绝对路径;不填则使用 backend/db.sqlite3
# DJANGO_SQLITE_PATH=D:\PythonProject\Low GI\market_assistant\backend\db.sqlite3
# --- 浏览器访问前端时的 Origin开发Vite 5173生产改为实际域名---
CORS_ALLOWED_ORIGINS=http://localhost:5173,http://127.0.0.1:5173
CSRF_TRUSTED_ORIGINS=http://localhost:5173,http://127.0.0.1:5173
# --- LLM配料图识别、竞品报告、策略稿OpenAI 兼容接口,与 AI_crawler 共用本文件)---
# OPENAI_API_KEY=sk-your-key-here
# OPENAI_BASE_URL=https://llm.example.com/v1
# OPENAI_VISION_MODEL=Qwen/Qwen3-Omni-30B-A3B
# 纯文本优先OPENAI_TEXT_MODEL 或 LLM_TEXT_MODEL未设则回退到视觉模型名
# OPENAI_TEXT_MODEL=
# 别名LLM_API_KEY、LLM_BASE_URL、LLM_MODEL
# --- 可选:流水线侧 LLM 开关 ---
# MA_SKIP_LLM_KEYWORD_SUGGEST=1
# MA_ENABLE_LLM_COMMENT_SENTIMENT=1
# MA_SKIP_LLM_COMMENT_SENTIMENT=1