DrSmoothl
c0be64f268
Refactor API response models and improve documentation
...
- Updated response model functions in emoji, expression, jargon, and person routers to include detailed docstrings.
- Enhanced the clarity of function signatures by specifying return types.
- Removed redundant comments and improved code readability.
- Added error handling and logging improvements in various endpoints.
- Deleted outdated code documentation file.
2026-04-22 23:33:57 +08:00
DrSmoothl
e7ac064a80
WebUI 后端类型注解补全,使用全 typing 库类型注解
2026-03-16 13:09:12 +08:00
DrSmoothl
172615f18a
WebUI 前端 & 后端超级大重构
2026-03-14 21:06:36 +08:00
DrSmoothl
a576313b22
Ruff Format
2026-03-13 11:45:26 +08:00
DrSmoothl
6378bb2052
fix Ruff
2026-02-21 16:29:30 +08:00
DrSmoothl
f66e25b1a7
fix(webui): fix missing imports and create toml_utils module
...
- Create src/common/toml_utils.py with TOML utility functions
- Fix APIAdapterConfig → ModelConfig in config.py (4 locations)
- Fix git_mirror_service import path in plugin.py
- Fix emoji.py type annotations and unused imports
- Fix jargon.py comment (ChatStreams → ChatSession)
- All routers now import successfully
- Zero Peewee remnants verified across src/webui/
2026-02-17 20:19:37 +08:00
DrSmoothl
390d1daefd
refactor(webui): migrate jargon routes from Peewee to SQLModel
...
- 完全迁移到 SQLModel
- chat_id → session_id 映射
- ChatStreams → ChatSession 替代
- 移除 is_global 字段
- 使用 group_id 替代 group_name
2026-02-17 19:58:21 +08:00
DrSmoothl
60f76e4d4e
添加对 peewee 的旧数据库的兼容层,初步重构插件的 database API
2026-02-09 22:44:56 +08:00
墨梓柒
ffafbf0a26
WebUI后端整体重构
2026-01-13 07:24:27 +08:00