From e64aed155ca499f2ede55671a227080e700de681 Mon Sep 17 00:00:00 2001 From: eeymoo Date: Sat, 19 Sep 2026 13:01:08 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=B7=BB=E5=8A=A0=20.env.example=20?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E5=8F=98=E9=87=8F=E6=A8=A1=E6=9D=BF=EF=BC=8C?= =?UTF-8?q?=E5=85=81=E8=AE=B8=E5=85=B6=E5=85=A5=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.example | 42 ++++++++++++++++++++++++++++++++++++++++++ .gitignore | 1 + 2 files changed, 43 insertions(+) create mode 100644 .env.example diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..21d66fd --- /dev/null +++ b/.env.example @@ -0,0 +1,42 @@ +# ============================================================ +# PromptCR-Lab 环境变量模板 +# 用法:cp .env.example .env 后填入真实密钥 +# 注意:.env 已被 git 忽略,切勿提交;shell export 的变量优先级高于本文件 +# ============================================================ + +# --- 数据库 --- +# Docker 部署(PostgreSQL 容器): +DATABASE_URL=postgresql+psycopg://postgres:postgres@localhost:5432/promptcr +# 本地开发(SQLite 单文件,免装数据库)请改为: +# DATABASE_URL=sqlite:///./promptcr.db + +# --- DeepSeek --- +# 官方直连: +DEEPSEEK_API_KEY= +DEEPSEEK_BASE_URL=https://api.deepseek.com/v1 +DEEPSEEK_MODEL=deepseek-chat +# 中转站(OpenAI 兼容)示例: +# DEEPSEEK_BASE_URL=https://new-api.onemue.cn/v1 +# DEEPSEEK_MODEL=deepseek-v4-flash + +# --- Kimi(Moonshot) --- +# 官方直连: +KIMI_API_KEY= +KIMI_BASE_URL=https://api.moonshot.cn/v1 +KIMI_MODEL=moonshot-v1-8k +# 中转站示例: +# KIMI_BASE_URL=https://new-api.onemue.cn/v1 +# KIMI_MODEL=kimi-k2.7 + +# --- QWEN(通义千问) --- +# 官方直连: +QWEN_API_KEY= +QWEN_BASE_URL=https://dashscope.aliyuncs.com/compatible-mode/v1 +QWEN_MODEL=qwen-turbo +# 中转站示例(本论文实验实际接入 GLM-4.7): +# QWEN_BASE_URL=https://new-api.onemue.cn/v1 +# QWEN_MODEL=glm-4.7 + +# --- 调度参数(可选,默认值已够用) --- +# DEFAULT_MODEL_CONCURRENCY=5 +# DEFAULT_MAX_RETRIES=3 diff --git a/.gitignore b/.gitignore index 1e21c9b..ab4369a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ # Environment variables and secrets .env .env.* +!.env.example *.pem *.key *.p12