新增前后端AI聊天模块,包括流式对话、配置管理和UI组件优化。

This commit is contained in:
2026-03-19 01:35:13 +08:00
commit ba6ceb94c8
66 changed files with 8631 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
{
"permissions": {
"allow": [
"Bash(python -m venv .venv)",
"Bash(source .venv/Scripts/activate)",
"Bash(pip install:*)",
"Bash(py --version)",
"Bash(python3 -m venv .venv)",
"Bash(python3 -m venv /d/noval/backend/.venv)",
"Bash(python3 -m venv D:/noval/backend/.venv)",
"Bash(python3 -c \"import sys; print\\(sys.executable, sys.version\\)\")",
"Bash(py -3 --version)",
"Bash(py -3 -c \"import sys; print\\(sys.executable\\)\")",
"Bash(py -3 -m venv D:/noval/backend/.venv)",
"Bash(D:/noval/backend/.venv/Scripts/pip install:*)",
"Bash(npm create:*)",
"Bash(D:/noval/backend/.venv/Scripts/python -c \"from app.database import init_db; init_db\\(\\); print\\(''DB init OK''\\)\")",
"Bash(.venv/Scripts/python -c \"from app.database import init_db; init_db\\(\\); print\\(''DB init OK''\\)\")",
"Bash(curl -s -X POST http://127.0.0.1:8000/api/novels -H \"Content-Type: application/json; charset=utf-8\" --data-raw \"{\"\"title\"\":\"\"Test Novel\"\",\"\"description\"\":\"\"A test description\"\"}\")",
"Bash(curl -s http://127.0.0.1:8000/api/novels)",
"Bash(curl -s -X POST http://127.0.0.1:8000/api/novels -H \"Content-Type: application/json\" --data-raw \"{\"\"title\"\":\"\"Novel A\"\",\"\"description\"\":\"\"Desc A\"\"}\")",
"Bash(curl -s -X POST http://127.0.0.1:8000/api/novels -H \"Content-Type: application/json\" --data-raw \"{\"\"title\"\":\"\"Novel B\"\",\"\"description\"\":\"\"Desc B\"\"}\")",
"Bash(taskkill //F //IM uvicorn.exe)",
"Bash(taskkill //F //IM python.exe)"
]
}
}