Files

43 lines
1.4 KiB
Bash
Raw Permalink 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.
# ============================================================
# 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