feat: 重构布局与模型配置
- 写作范式分析页面改为左中右三栏布局 - 范式分段写作页面改为左中右三栏布局 - 模型设置移至设置中心,支持多服务商选择 - API 配置通过 .env 文件管理,提升安全性 - 支持 DeepSeek、OpenAI、Claude、自定义服务商
This commit is contained in:
27
.env.example
27
.env.example
@@ -1,7 +1,22 @@
|
||||
# DeepSeek API 配置
|
||||
VITE_API_URL=https://api.deepseek.com/chat/completions
|
||||
VITE_API_KEY=your_deepseek_api_key_here
|
||||
# AI 写作工坊 - 模型服务商配置
|
||||
# 复制此文件为 .env 并填入您的 API Key
|
||||
|
||||
# 其他中继平台配置示例
|
||||
# VITE_API_URL=https://your-kong-gateway.com/v1/chat/completions
|
||||
# VITE_API_KEY=your_bearer_token_here
|
||||
# ========== 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
|
||||
|
||||
Reference in New Issue
Block a user