- api/report/ 包:query(连库+SQL)/ views(2 视图)/ serializers(OpenAPI)/ tests(17 单测) - urls.py 注册 news/reports/、news/events/;settings.py SPECTACULAR 加「日报」tag - .env.example 补 NEWS_DB_* 占位配置;README/continuation.md 更新 - docs/news_report_api.md 使用手册;CLAUDE*.md 修正 CLI 路径为 finance/ 前缀
45 lines
1.2 KiB
Bash
45 lines
1.2 KiB
Bash
# Django
|
||
DJANGO_SECRET_KEY=your-secret-key-here
|
||
DJANGO_DEBUG=True
|
||
|
||
# Tushare 股票数据
|
||
TUSHARE_TS_TOKEN=your-tushare-token
|
||
|
||
# MySQL
|
||
MYSQL_HOST=localhost
|
||
MYSQL_PORT=3306
|
||
MYSQL_USER=myquant
|
||
MYSQL_PASSWORD=your-mysql-password
|
||
MYSQL_DATABASE=myquant
|
||
|
||
# 日报结构化入库 (news_report / news_event) 只读查询
|
||
# 与 report_db_design.md §7 一致;密码必填,缺失时接口直接报错
|
||
NEWS_DB_HOST=127.0.0.1
|
||
NEWS_DB_PORT=3306
|
||
NEWS_DB_USER=myquant
|
||
NEWS_DB_PASSWORD=your-news-db-password
|
||
NEWS_DB_NAME=myquant
|
||
|
||
# DeepSeek AI
|
||
DEEPSEEK_API_KEY=your-deepseek-api-key
|
||
|
||
# 阿里 DashScope (ASR + Qwen)
|
||
DASHSCOPE_API_KEY=your-dashscope-api-key
|
||
|
||
# ========================
|
||
# 以下为 video 模块 AI 模型配置
|
||
# 修改后重启 uWSGI 生效
|
||
# ========================
|
||
|
||
# DeepSeek 模型名(视频分割 + 标题提取)
|
||
# 可用: deepseek-chat(推荐,支持 response_format), deepseek-reasoner
|
||
DEEPSEEK_MODEL=deepseek-chat
|
||
|
||
# DashScope ASR 语音识别模型
|
||
# 可用: paraformer-realtime-v2, paraformer-v2
|
||
DASHSCOPE_ASR_MODEL=paraformer-realtime-v2
|
||
|
||
# DashScope 大语言模型(文本纠错 + 文本分析)
|
||
# 可用: qwen-plus, qwen-max, qwen-turbo
|
||
DASHSCOPE_LLM_MODEL=qwen-plus
|