- 写作范式分析页面改为左中右三栏布局 - 范式分段写作页面改为左中右三栏布局 - 模型设置移至设置中心,支持多服务商选择 - API 配置通过 .env 文件管理,提升安全性 - 支持 DeepSeek、OpenAI、Claude、自定义服务商
23 lines
842 B
Plaintext
23 lines
842 B
Plaintext
# AI 写作工坊 - 模型服务商配置
|
|
# 复制此文件为 .env 并填入您的 API Key
|
|
|
|
# ========== DeepSeek (默认) ==========
|
|
VITE_DEEPSEEK_API_URL=https://api.deepseek.com/chat/completions
|
|
VITE_DEEPSEEK_API_KEY=your_deepseek_api_key_here
|
|
VITE_DEEPSEEK_MODEL=deepseek-chat
|
|
|
|
# ========== OpenAI ==========
|
|
# VITE_OPENAI_API_URL=https://api.openai.com/v1/chat/completions
|
|
# VITE_OPENAI_API_KEY=your_openai_api_key_here
|
|
# VITE_OPENAI_MODEL=gpt-4o
|
|
|
|
# ========== Claude (Anthropic) ==========
|
|
# VITE_CLAUDE_API_URL=https://api.anthropic.com/v1/messages
|
|
# VITE_CLAUDE_API_KEY=your_claude_api_key_here
|
|
# VITE_CLAUDE_MODEL=claude-3-5-sonnet
|
|
|
|
# ========== 自定义 API 中继 ==========
|
|
# VITE_CUSTOM_API_URL=https://your-api-gateway.com/v1/chat/completions
|
|
# VITE_CUSTOM_API_KEY=your_custom_api_key_here
|
|
# VITE_CUSTOM_MODEL=your_model_name
|