diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..b05afa5 --- /dev/null +++ b/.env.example @@ -0,0 +1,59 @@ +# =========================================== +# PDF 翻譯系統環境變數配置範本 +# =========================================== +# 複製此檔案為 .env.local 並填入您的 API 金鑰 + +# =========================================== +# AI 服務提供者設定 (必填) +# =========================================== + +# 選擇 AI 提供者: 'deepseek' 或 'openai' +AI_PROVIDER=deepseek + +# =========================================== +# DeepSeek 設定 (推薦 - 成本較低) +# =========================================== +# 註冊網址: https://platform.deepseek.com/ +# 費用: 輸入 $0.00014/1K tokens, 輸出 $0.00028/1K tokens +DEEPSEEK_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx +DEEPSEEK_BASE_URL=https://api.deepseek.com/v1 +DEEPSEEK_MODEL=deepseek-chat + +# =========================================== +# OpenAI 設定 (備選) +# =========================================== +# 註冊網址: https://platform.openai.com/ +# 費用: 輸入 $0.00015/1K tokens, 輸出 $0.0006/1K tokens +OPENAI_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx +OPENAI_MODEL=gpt-4o-mini + +# =========================================== +# 應用程式設定 (可選) +# =========================================== + +# 檔案大小限制 (位元組) - 預設 10MB +MAX_FILE_SIZE=10485760 + +# 費用追蹤設定 +ENABLE_COST_TRACKING=true +DEFAULT_CURRENCY=USD + +# PDF 處理設定 +PDF_PROCESSING_TIMEOUT=30000 +OCR_LANGUAGE_DEFAULT=chi_tra+eng + +# 開發環境設定 +NODE_ENV=development + +# =========================================== +# 生產環境額外設定 (部署時使用) +# =========================================== + +# Vercel 部署設定 +# VERCEL_URL=your-app-domain.vercel.app + +# 安全設定 +# ALLOWED_ORIGINS=https://your-domain.com,https://your-other-domain.com + +# 日誌等級 (development, production) +# LOG_LEVEL=info \ No newline at end of file