Files
worklist/.env.example
2026-01-13 09:43:07 +00:00

37 lines
1.4 KiB
Plaintext
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.

# Flask配置
SECRET_KEY=your-secret-key-here-please-change-this
FLASK_ENV=production
# AI服务配置(可选,用于AI润色功能)
# 支持多个AI服务商OpenAI、Claude、Gemini等
# 方式1使用统一配置推荐
AI_MODEL=gpt-3.5-turbo # 模型名称,例如: gpt-4, claude-3-sonnet-20240229, gemini-pro
AI_API_KEY= # API密钥
# AI_API_BASE= # 可选自定义API端点
# AI_CUSTOM_PROVIDER= # 可选自定义端点的API格式如 'openai'用于兼容OpenAI格式的自定义端点
# AI_TEMPERATURE=0.7 # 可选:温度参数(0-1)
# AI_MAX_TOKENS=2000 # 可选最大token数建议1000-2000避免中文返回被截断
# 方式2使用OpenAI配置兼容旧版本
# OPENAI_API_KEY=
# 常用模型示例:
# OpenAI: gpt-3.5-turbo, gpt-4, gpt-4-turbo
# Claude: claude-3-opus-20240229, claude-3-sonnet-20240229, claude-3-haiku-20240307
# Gemini: gemini-pro, gemini-1.5-pro
# 更多模型请参考: https://docs.litellm.ai/docs/providers
# 自定义端点示例使用兼容OpenAI格式的API调用Gemini模型:
# AI_MODEL=gemini-pro
# AI_API_KEY=your_api_key_here
# AI_API_BASE=https://your-custom-endpoint.com/v1
# AI_CUSTOM_PROVIDER=openai # 指定使用OpenAI格式的API调用
# 默认用户配置
# Docker首次启动时会自动创建此用户
DEFAULT_USERNAME=admin
DEFAULT_PASSWORD=admin123
# 注意: 生产环境请务必修改默认密码!