| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
feat(audit): add authentication method tracking in audit logs | 22 天前 | |
feat: better admin permissions (#5755) * feat: add casbin admin permissions * feat: improve audit logging to associate logs with actual operators and target users * feat: enhance admin permissions and UI interactions for sensitive actions * Refactor authz RBAC and tighten channel permissions * Split channel authz field policy * Address channel authz review findings | 8 天前 | |
feat(file): unify file handling with a new FileSource abstraction for URL and base64 data | 4 个月前 | |
feat: Improve backend multilingual support | 4 个月前 | |
feat: disk request body cache (#2780) * feat: 引入通用 HTTP BodyStorage/DiskCache 缓存配置与管理 - 新增 common/body_storage.go 提供 HTTP 请求体存储抽象和文件缓存能力 - 增加 common/disk_cache_config.go 支持全局磁盘缓存配置 - main.go 挂载缓存初始化流程 - 新增和补充 controller/performance.go (及 unix/windows) 用于缓存性能监控接口 - middleware/body_cleanup.go 自动清理缓存文件 - router 挂载相关接口 - 前端 settings 页面新增性能监控设置 PerformanceSetting - 优化缓存开关状态和模块热插拔能力 - 其他相关文件同步适配缓存扩展 * fix: 修复 BodyStorage 并发安全和错误处理问题 - 修复 diskStorage.Close() 竞态条件,先获取锁再执行 CAS - 为 memoryStorage 添加互斥锁和 closed 状态检查 - 修复 CreateBodyStorageFromReader 在磁盘存储失败时的回退逻辑 - 添加缓存命中统计调用 (IncrementDiskCacheHits/IncrementMemoryCacheHits) - 修复 gin.go 中 Seek 错误被忽略的问题 - 在 api-router 添加 BodyStorageCleanup 中间件 - 修复前端 formatBytes 对异常值的处理 Co-authored-by: Cursor <cursoragent@cursor.com> --------- Co-authored-by: Cursor <cursoragent@cursor.com> | 5 个月前 | |
feat: add disable cache middleware | 10 个月前 | |
feat(advanced-custom): remove fallback option and enhance path matching for advanced custom routes | 17 天前 | |
format: package name -> github.com/QuantumNous/new-api (#2017) | 8 个月前 | |
🧹 fix: harden request-body size handling and error unwrapping Tighten oversized request handling across relay paths and make error matching reliable. - Align MAX_REQUEST_BODY_MB fallback to 32 in request body reader and decompression middleware - Stop ignoring GetRequestBody errors in relay retry paths; return consistent **413** on oversized bodies (400 for other read errors) - Add Unwrap() to types.NewAPIError so errors.Is/As can match wrapped underlying errors - go test ./... passes | 6 个月前 | |
fix: enforce header nav access control for public modules (#4889) | 1 个月前 | |
fix: enforce header nav access control for public modules (#4889) | 1 个月前 | |
feat(i18n): add backend multi-language support with user language preference - Add go-i18n library for internationalization - Create i18n package with translation keys and YAML locale files (zh/en) - Implement i18n middleware for language detection from user settings and Accept-Language header - Add Language field to UserSetting DTO - Update API response helpers with i18n support (ApiErrorI18n, ApiSuccessI18n) - Migrate hardcoded messages in token, redemption, and user controllers - Add frontend language preference settings component - Sync language preference across header selector and user settings - Auto-restore user language preference on login | 4 个月前 | |
format: package name -> github.com/QuantumNous/new-api (#2017) | 8 个月前 | |
format: package name -> github.com/QuantumNous/new-api (#2017) | 8 个月前 | |
feat(middleware): add RouteTag middleware for enhanced logging and routing - Introduced RouteTag middleware to set route tags for different API endpoints. - Updated logger to include route tags in log output. - Applied RouteTag middleware across various routers including API, dashboard, relay, video, and web routers for consistent logging. | 4 个月前 | |
format: package name -> github.com/QuantumNous/new-api (#2017) | 8 个月前 | |
refactor(middleware): enhance performance error messages Updated performance checks to provide more detailed error messages, including current usage and thresholds for CPU, memory, and disk. Additionally. Updated localization files to reflect changes in retry options across multiple languages. | 3 个月前 | |
feat: 支持通过环境变量配置搜索接口限流参数 | 3 个月前 | |
format: package name -> github.com/QuantumNous/new-api (#2017) | 8 个月前 | |
feat: support ClickHouse log database (#5663) * feat: support ClickHouse log database * feat(log): optimize log deletion process for ClickHouse | 13 天前 | |
fix: limit anonymous request body (#5244) * fix: limit anonymous request body (env ANONYMOUS_REQUEST_BODY_LIMIT_KB = 512) * fix: allow disabling anonymous request body limit | 30 天前 | |
fix: require proper verification for passkey changes (#4393) | 2 个月前 | |
🎨 style(go): format entire codebase - Apply canonical Go formatting to all .go files - No functional changes; whitespace/import/struct layout only - Improves consistency, reduces diff noise, and aligns with standard tooling | 9 个月前 | |
format: package name -> github.com/QuantumNous/new-api (#2017) | 8 个月前 | |
fix: update abortWithOpenAiMessage function to use types.ErrorCode | 5 个月前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 22 天前 | ||
| 8 天前 | ||
| 4 个月前 | ||
| 4 个月前 | ||
| 5 个月前 | ||
| 10 个月前 | ||
| 17 天前 | ||
| 8 个月前 | ||
| 6 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 4 个月前 | ||
| 8 个月前 | ||
| 8 个月前 | ||
| 4 个月前 | ||
| 8 个月前 | ||
| 3 个月前 | ||
| 3 个月前 | ||
| 8 个月前 | ||
| 13 天前 | ||
| 30 天前 | ||
| 2 个月前 | ||
| 9 个月前 | ||
| 8 个月前 | ||
| 5 个月前 |