中文文档 | English
AI Novel Generator is an AI-assisted novel creation project. The repository currently contains:
- a FastAPI backend for configuration, novel, volume, upload, and AI workflow APIs
- a Next.js frontend that is being rebuilt
- a Windows desktop launcher that can start the backend and frontend together
This project is still under an ongoing refactor and is not yet considered feature-complete.
- interfaces, folder structure, and workflows may continue to change
- some features from earlier iterations may be incomplete or temporarily unavailable
- if you need the previous version, please check the
mainbranch
- Python 3
- MongoDB
- Node.js and npm for the frontend
Application configuration is loaded from application/config/config.yaml.
On first run, the project will ensure the following files exist:
application/config/config_default.yamlapplication/config/config.yaml
Before running AI-related features, update the LLM provider settings in application/config/config.yaml, especially:
api_keybase_urlwhere applicabledefault_providerand workflow provider mappinguse_system_proxyif you explicitly want the SDK to inherit your Windows/system proxy. The default isfalse.
You should also make sure MongoDB is running locally if you use the default database settings.
Configuration can be edited through the frontend settings interface or by directly modifying the YAML files mentioned above.
Install Python dependencies:
pip install -r requirements.txtInstall frontend dependencies:
cd frontend
npm installThe quickest Windows entry point is:
start.batThis starts the desktop launcher, which can then start:
- backend:
http://127.0.0.1:8000 - API docs:
http://127.0.0.1:8000/docs - frontend:
http://localhost:3000
python main.pyEnable backend debug logging and raw AI response output:
python main.py --debugWhen you use the Windows launcher, you can enable the backend checkbox labeled 后端调试日志 before starting the backend.
cd frontend
npm run devExample test commands:
python -m tests.test_volumes
python -m tests.test_llm openaiSome tests require local services or valid model credentials.
This README intentionally documents the current refactor state only. If the current branch does not match the workflow you expect, review the main branch for the earlier implementation.