Files
Mofox-Core/requirements.txt
minecraft1024a 077628930b refactor(server): 将记忆可视化工具和统计功能整合进主服务
将原先独立的记忆可视化工具(Memory Visualizer)和LLM使用统计逻辑深度整合到项目主服务中。

主要变更包括:
- **移除独立的可视化工具**: 删除了 `tools/memory_visualizer` 目录下的所有独立服务器、脚本和文档,清理了项目结构。
- **API路由整合**: 在主 FastAPI 应用中注册了记忆可视化工具的路由,使其成为核心功能的一部分,可通过 `/visualizer` 访问。
- **统计逻辑重构**: 将LLM使用统计的计算逻辑从API路由层 `statistic_router.py` 中剥离,迁移到 `src/chat/utils/statistic.py` 中,实现了逻辑的解耦和复用。API路由现在直接调用重构后的统计任务。
- **依赖清理与添加**: 添加了 `jinja2` 作为模板渲染的依赖,并清除了与独立可视化工具相关的旧依赖。

此次重构简化了项目的维护和部署,将原本分散的功能统一管理,提升了代码的内聚性和可维护性。
2025-11-07 21:12:11 +08:00

81 lines
849 B
Plaintext

sqlalchemy
aiosqlite
aiofiles
aiomysql
APScheduler
aiohttp
aiohttp-cors
colorama
customtkinter
dotenv
faiss-cpu
fastapi
fastmcp
rjieba
jsonlines
maim_message
quick_algo
matplotlib
networkx
numpy
openai
google-genai
pandas
peewee
pyarrow
pydantic
pypinyin
python-dateutil
python-dotenv
python-igraph
pymongo
requests
ruff
scipy
setuptools
toml
tomli
tomli_w
tomlkit
tqdm
urllib3
uvicorn
websockets
strawberry-graphql[fastapi]
httpx[socks]
packaging
rich
psutil
cryptography
json-repair
reportportal-client
scikit-learn
seaborn
structlog
httpx
requests
beautifulsoup4
lxml
json5
toml
beautifulsoup4
exa_py
asyncddgs
opencv-python
Pillow
chromadb
asyncio
tavily-python
google-generativeai
lunar_python
fuzzywuzzy
python-multipart
aiofiles
jinja2
inkfox
soundfile
pedalboard
# For local speech-to-text functionality (stt_whisper_plugin)
openai-whisper