{"repo":"Liao-Ke/everyday","free":true,"listed":false,"github":"https://github.com/Liao-Ke/everyday","clone":"git clone https://github.com/Liao-Ke/everyday.git","description":"✨ 让经典名言焕发新生！基于LLM模型动态生成创意故事，用AI重新诠释金山每日一句的智慧结晶","language":"Markdown","stars":65,"topics":["markdown","vitepress","ai","deepseek","deepseek-r1","zhipuai","gpt","python","llm","deepseek-v3"],"license":"MIT","category":"ai-agents","readme_excerpt":"everyday - AI 每日故事生成器 根据金山词霸每日一句，通过多个 AI 模型并行生成故事，保存为 Markdown 文件，由 VitePress 静态站点展示。 特性 - 多模型并行 ：同时调用 7+ AI 模型（DeepSeek、智谱、Kimi、豆包、通义千问、ModelScope、Gemini），ThreadPoolExecutor 并发运行 - 插件式模型配置 ：每个模型一个 config.py 文件，导出 6 个标准化符号即可注册，无需修改核心代码 - 惰性数据加载 ：import 时不发起 HTTP 请求，金山词霸每日句和网络搜索结果通过 model configs/ shared.py 惰性获取 - 流水线架构 ：PREPROCESSORS → chat → POSTPROCESSORS → 文件持久化，各环节可插拔 - JSON Lines 日志 ： chat logs/story records.json 追加写入，O(1) 持久化，兼容旧 JSON 数组格式 - 自动归档 ： check.py 监控日志文件大小，超过阈值自动归档 - 每周词云 ： wordcloud analysis.py 对全量故事做分词、词频统计，生成词云图 + 分析报告 - 自动化部署 ：GitHub Actions 每日自动生成并提交故事，Cloudflare Pages 自动构建部署 快速开始 配置 复制 .env.example 为 .env ，填入 API 密钥： 环境变量 说明 获取地址 ---------- ------ ---------- API KEY 智谱 AI（GLM-4.7/4.5/Z1 Flash） https://bigmodel.cn API KEY DS DeepSeek（V4 Pro + Reasoner） https://platform.deepseek.com API KEY KIMI Kimi（Thinking + K2） https://platform.moonshot.cn API KEY DOUBAO 豆包（1.5 Pro + Thinking） https://console.volcengine.com/ark API KEY QWEN 通义千问（Qwen 3-235B） https://bailian.console.aliyun.com API KEY MODELSCOPE ModelScope（体验模型） https://modelscope.cn API KEY GEMINI Gemini 2.5 Pro https://aistudio.google.com 使用 开发 项目结构 添加新模型 1. 在 .env 中添加 API KEY XXX 2. 创建 model configs/xxx config.py ，导出 6 个符号： 符号 说明 ------ ------ API KEY os.getenv(\"API KEY XXX\") CLIENT PARAMS OpenAI 客户端参数（ base url ） CHAT PARAMS Chat 参数（ model 、 messages 、 stream 等） PREPROCESSORS API 调用前预处理函数列表 POSTPROCESSORS API 响应后处理函数列表 POSTPROCESSOR FILES 持久化输出函数列表 3. 若需排除（如思维链模型），在 main.py:13 的 EXCLUDED MODELS 中添加模","default_branch":null,"files":null,"tree":[],"storefront":"/r/Liao-Ke","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Liao-Ke/everyday/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}