coulsontl
484e5cdc42
feat: 添加环境变量加载和思考配置处理
2025-05-24 09:26:20 +08:00
snaily
f83f0fa768
chore:清理代码,移除不必要的注释和导入,优化日志记录和错误处理
2025-04-21 13:20:32 +08:00
snaily
b3a057b6ba
refactor: 代码结构优化与常量化
...
将日志系统从 app/logger/ 移至 app/log/ 目录
将路由配置从 routers.py 重命名为 routes.py
将硬编码配置值移至 constants.py 中的默认常量
统一代码格式和导入排序
优化函数参数对齐方式
2025-03-20 21:59:18 +08:00
snaily
b14bb93d8f
refactor: 项目结构优化与FastAPI生命周期更新
...
重构项目目录结构,提高代码组织性和可维护性
将schemas目录重命名为domain,更好地表达领域模型概念
将services目录细分为service/chat、service/image等子目录
将api目录重命名为router,更符合FastAPI惯例
创建utils目录存放通用工具函数
更新FastAPI应用程序生命周期管理
替换已弃用的on_event方法为推荐的lifespan事件处理器
添加应用程序关闭时的日志记录
代码质量改进
抽取常量到constants.py,减少硬编码值
添加helpers.py提供通用工具函数
优化配置管理,使用环境变量和默认值
完善文档字符串,提高代码可读性
2025-03-20 17:13:03 +08:00
yinpeng
44f956e4e4
feat: Add PWA support with manifest and ServiceWorker integration
...
- Mounted static files directory to serve PWA assets like manifest.json and ServiceWorker scripts.
- Updated `auth.html` and `keys_status.html` templates:
- Added `<link>` for manifest and icons to support Progressive Web App (PWA) features.
- Added meta tags for theme color and Apple web app capabilities.
- Integrated ServiceWorker registration script for offline capabilities.
2025-02-12 16:20:34 +08:00
yinpeng
17f1355099
feat: 增强应用日志记录并优化错误处理
2025-02-11 21:32:21 +08:00
yinpeng
e6bf45d778
refactor: 移除静态文件配置和相关依赖
2025-02-11 20:55:13 +08:00
yinpeng
8c9b802016
feat: 添加Web验证页面并优化密钥管理功能
2025-02-11 20:45:49 +08:00
yinpeng
870b1ecc17
feat: 添加重试机制和消息转换器,并支持Gemini v1beta API
2024-12-27 20:07:43 +08:00
yinpeng
d9229cced9
feat: 支持 Gemini 格式请求,并优化日志和配置
2024-12-18 19:54:43 +08:00
yinpeng
56a069dbac
新增自定义日志模块,替换全局logging实现;优化日志输出格式与颜色支持
2024-12-16 16:20:53 +08:00
yinpeng
c56bea0b25
添加API密钥管理、模型服务和安全服务,并优化FastAPI应用程序配置
2024-12-15 11:08:35 +08:00