Files
article-writer/README.md
hubian d2ce8f54d4 v1.0 - 文章编写系统初始版本
功能:
- 主题管理(创建/编辑/删除)
- 素材收集(文本/图片)
- Prompt编辑
- 大模型生成文章
- 文章管理(查看/编辑/删除)

技术栈:Flask + SQLite + LLM API
2026-05-21 17:20:13 +08:00

64 lines
1.4 KiB
Markdown
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.
# Article Writer - 文章编写系统
基于 Flask + LLM 的智能文章编写系统,支持主题管理、素材收集和大模型生成文章。
## 功能
- 主题管理:创建、编辑、删除文章主题
- 素材收集:支持文本素材和图片素材
- Prompt编辑每个主题可自定义生成提示词
- 大模型生成:调用 LLM 根据素材自动生成文章
- 文章管理:查看、编辑、删除生成的文章
## 技术栈
- 后端Python 3 + Flask + SQLite
- 前端HTML/CSS/JS原生
- LLM兼容 OpenAI API 格式的大模型接口
## 快速开始
```bash
# 安装依赖
pip install flask requests
# 配置环境变量
export LLM_URL="https://your-llm-api/v1/chat/completions"
export LLM_API_KEY="your-api-key"
export LLM_MODEL="qwen3.6-plus"
# 启动服务
python app.py
```
访问 http://localhost:19200
## 配置
通过环境变量配置 LLM 接口:
| 环境变量 | 说明 | 默认值 |
|---------|------|--------|
| LLM_URL | 大模型 API 地址 | - |
| LLM_API_KEY | API 密钥 | - |
| LLM_MODEL | 模型名称 | qwen3.6-plus |
## 项目结构
```
article-writer/
├── app.py # 主应用Flask后端
├── templates/
│ ├── index.html # 首页(主题列表)
│ └── topic.html # 主题详情页
├── static/
│ ├── css/
│ ├── js/
│ └── uploads/ # 图片上传目录
└── .gitignore
```
## License
MIT