Seefs
2a15e3b152
feat: codex channel ( #2652 )
...
Publish Docker image (Multi Registries, native amd64+arm64) / Build & push (amd64) [native] (push) Has been cancelled
Publish Docker image (Multi Registries, native amd64+arm64) / Build & push (arm64) [native] (push) Has been cancelled
Publish Docker image (Multi Registries, native amd64+arm64) / Create multi-arch manifests (Docker Hub) (push) Has been cancelled
* feat: codex channel
* feat: codex channel
* feat: codex oauth flow
* feat: codex refresh cred
* feat: codex usage
* fix: codex err message detail
* fix: codex setting ui
* feat: codex refresh cred task
* fix: import err
* fix: codex store must be false
* fix: chat -> responses tool call
* fix: chat -> responses tool call
2026-01-14 22:29:43 +08:00
CaIon
b5a0c822d2
feat(adaptor): 新适配百炼多种图片生成模型
...
Publish Docker image (Multi Registries, native amd64+arm64) / Build & push (amd64) [native] (push) Has been cancelled
Publish Docker image (Multi Registries, native amd64+arm64) / Build & push (arm64) [native] (push) Has been cancelled
Publish Docker image (Multi Registries, native amd64+arm64) / Create multi-arch manifests (Docker Hub) (push) Has been cancelled
Release (Linux, macOS, Windows) / Linux Release (push) Has been cancelled
Release (Linux, macOS, Windows) / macOS Release (push) Has been cancelled
Release (Linux, macOS, Windows) / Windows Release (push) Has been cancelled
- wan2.6系列生图与编辑,适配多图生成计费
- wan2.5系列生图与编辑
- z-image-turbo生图,适配prompt_extend计费
2025-12-29 23:00:17 +08:00
Seefs
bdfc875775
feat: pyroscope integrate
2025-12-13 13:49:38 +08:00
CaIon
ffb60c9749
feat: add Umami and Google Analytics integration
Publish Docker image (Multi Registries, native amd64+arm64) / Build & push (amd64) [native] (push) Has been cancelled
Publish Docker image (Multi Registries, native amd64+arm64) / Build & push (arm64) [native] (push) Has been cancelled
Publish Docker image (Multi Registries, native amd64+arm64) / Create multi-arch manifests (Docker Hub) (push) Has been cancelled
Build Electron App / build (windows-latest) (push) Has been cancelled
Build Electron App / release (push) Has been cancelled
Release (Linux, macOS, Windows) / Linux Release (push) Has been cancelled
Release (Linux, macOS, Windows) / macOS Release (push) Has been cancelled
Release (Linux, macOS, Windows) / Windows Release (push) Has been cancelled
2025-10-14 14:19:49 +08:00
Seefs
5010f2d004
format: package name -> github.com/QuantumNous/new-api ( #2017 )
2025-10-11 15:30:09 +08:00
CaIon
b211f593c3
fix(main): conditionally log missing .env file message based on debug mode
2025-09-30 11:22:00 +08:00
Seefs
343d8091fc
Merge branch 'main-upstream' into fix/volcengine_default_baseurl
...
# Conflicts:
# main.go
2025-09-29 12:08:52 +08:00
CaIon
b836bce81c
feat: add startup logging with network IPs and container detection
2025-09-27 16:19:58 +08:00
Seefs
e81005d104
Merge pull request #1070 from wzxjohn/feature/umami
...
feat: support UMAMI analytics
2025-09-27 15:30:54 +08:00
Seefs
8d32b08d44
Merge branch 'alpha' into feat-vertex-veo
2025-09-13 13:10:39 +08:00
CaIon
1bbabda081
feat(monitor_setting): implement automatic channel testing configuration
2025-09-03 14:00:52 +08:00
Sh1n3zZ
cf8b021b61
feat: vertex veo ( #1450 )
2025-08-27 18:06:47 +08:00
CaIon
c9e9a24e99
refactor: centralize logging and update resource initialization
...
This commit refactors the logging mechanism across the application by replacing direct logger calls with a centralized logging approach using the `common` package. Key changes include:
- Replaced instances of `logger.SysLog` and `logger.FatalLog` with `common.SysLog` and `common.FatalLog` for consistent logging practices.
- Updated resource initialization error handling to utilize the new logging structure, enhancing maintainability and readability.
- Minor adjustments to improve code clarity and organization throughout various modules.
This change aims to streamline logging and improve the overall architecture of the codebase.
2025-08-14 21:10:04 +08:00
CaIon
97ea8b6560
refactor: Introduce pre-consume quota and unify relay handlers
...
This commit introduces a major architectural refactoring to improve quota management, centralize logging, and streamline the relay handling logic.
Key changes:
- **Pre-consume Quota:** Implements a new mechanism to check and reserve user quota *before* making the request to the upstream provider. This ensures more accurate quota deduction and prevents users from exceeding their limits due to concurrent requests.
- **Unified Relay Handlers:** Refactors the relay logic to use generic handlers (e.g., `ChatHandler`, `ImageHandler`) instead of provider-specific implementations. This significantly reduces code duplication and simplifies adding new channels.
- **Centralized Logger:** A new dedicated `logger` package is introduced, and all system logging calls are migrated to use it, moving this responsibility out of the `common` package.
- **Code Reorganization:** DTOs are generalized (e.g., `dalle.go` -> `openai_image.go`) and utility code is moved to more appropriate packages (e.g., `common/http.go` -> `service/http.go`) for better code structure.
2025-08-14 20:05:06 +08:00
Seefs
3b34afa8c9
Revert "feat: add Claude Code channel support with OAuth integration"
2025-07-31 22:08:16 +08:00
Seefs
1389cc7acd
feat: add claude code channel
2025-07-26 18:06:46 +08:00
RedwindA
98d1da6fcc
fix: 调整初始化顺序以避免写入日志失败
2025-07-12 02:23:10 +08:00
CaIon
60bfadb84d
🔧 refactor(channel): add validation for CHANNEL_TEST_FREQUENCY in automatic tests
2025-07-10 11:31:07 +08:00
CaIon
beb6ea96d2
✨ feat(ability): enhance FixAbility function
2025-07-08 18:33:32 +08:00
Xiangyuan-liu
db98c0f4b1
refactor: log params and channel params
...
refactor: log params and channel params
2025-07-07 14:26:37 +08:00
CaIon
f14f4eaf1a
✨ feat: refactor environment variable initialization and introduce new constant types for API and context keys
2025-07-03 13:10:25 +08:00
CaIon
2f04ab0daf
✨ feat: enhance environment configuration and resource initialization
2025-07-01 13:13:30 +08:00
Apple\Apple
175ea56fdd
🚚 Refactor(ratio_setting): refactor ratio management into standalone ratio_setting package
...
Summary
• Migrated all ratio-related sources into `setting/ratio_setting/`
– `model_ratio.go` (renamed from model-ratio.go)
– `cache_ratio.go`
– `group_ratio.go`
• Changed package name to `ratio_setting` and relocated initialization (`ratio_setting.InitRatioSettings()` in main).
• Updated every import & call site:
– Model / cache / completion / image ratio helpers
– Group ratio helpers (`GetGroupRatio*`, `ContainsGroupRatio`, `CheckGroupRatio`, etc.)
– JSON-serialization & update helpers (`*Ratio2JSONString`, `Update*RatioByJSONString`)
• Adjusted controllers, middleware, relay helpers, services and models to reference the new package.
• Removed obsolete `setting` / `operation_setting` imports; added missing `ratio_setting` imports.
• Adopted idiomatic map iteration (`for key := range m`) where value is unused.
• Ran static checks to ensure clean build.
This commit centralises all ratio configuration (model, cache and group) in one cohesive module, simplifying future maintenance and improving code clarity.
2025-06-18 18:00:49 +08:00
skynono
8c20aef5d1
fix: enabled hot reload SyncOptions
2025-06-12 17:17:07 +08:00
CaIon
1de4af1c74
fix(main.go): correct comment formatting for embed directives
2025-06-08 20:26:14 +08:00
Xyfacai
8343fe0740
refactor: message content 改成 any
...
refactor: message content 改成 any
2025-06-07 23:47:22 +08:00
CaIon
adb2c39564
feat: add panic recovery and retry mechanism for InitChannelCache; improve batch deletion of abilities in FixAbility
2025-05-23 01:26:52 +08:00
wzxjohn
0a85846098
feat: support UMAMI analytics
2025-05-16 16:44:47 +08:00
CaIon
4bf0d094c4
feat: add video URL support in MediaContent and update token counting logic
2025-05-03 21:12:07 +08:00
CaIon
5bf1f2f275
refactor: rename InitModelSettings to InitRatioSettings
2025-04-26 17:15:34 +08:00
CaIon
577b18a1a1
feat: enhance file handling and logging in the application
2025-04-11 16:23:54 +08:00
CaIon
ed855e78f7
refactor: Remove duplicate model settings initialization in main function
2025-04-10 00:07:34 +08:00
CaIon
ac06e9a46f
feat: Add CheckSetup function call in main to ensure proper initialization #942
Publish Docker image (amd64) / Push Docker image to multiple registries (push) Has been cancelled
Publish Docker image (arm64) / Push Docker image to multiple registries (push) Has been cancelled
Linux Release / release (push) Has been cancelled
macOS Release / release (push) Has been cancelled
Windows Release / release (push) Has been cancelled
2025-04-08 18:14:36 +08:00
CaIon
9dc851d6ef
feat: Initialize model settings and improve concurrency control in operation settings
2025-04-07 22:20:47 +08:00
1808837298@qq.com
4ea2556b29
refactor: Replace manual goroutine creation with gopool.Go
2025-02-19 18:38:29 +08:00
1808837298@qq.com
8f3752c423
feat: enhance session store security and configuration
...
- Add 30-day max age for session cookies
- Enable HttpOnly flag
- Set SameSite to strict mode
2025-02-11 17:06:51 +08:00
1808837298@qq.com
94c10d8def
fix: update session store configuration
...
Publish Docker image (amd64) / Push Docker image to multiple registries (push) Has been cancelled
Publish Docker image (arm64) / Push Docker image to multiple registries (push) Has been cancelled
Linux Release / release (push) Has been cancelled
macOS Release / release (push) Has been cancelled
Windows Release / release (push) Has been cancelled
- Change session cookie path from "/api" to "/"
- Remove HttpOnly flag
2025-02-11 15:53:15 +08:00
1808837298@qq.com
6a9c0fd2c0
feat: configure session store options for API routes
...
- Set session cookie path to "/api"
- Disable secure flag for local development
- Enable HttpOnly flag for improved security
2025-02-11 15:45:24 +08:00
CalciumIon
6e002a5f0f
feat: enhance environment variable handling and security features
2024-12-30 17:24:19 +08:00
CalciumIon
aefd53b683
refactor: token cache logic
2024-12-30 17:10:48 +08:00
CalciumIon
727236e6e7
fix: 渠道标签开启下使用ID排序出错
Publish Docker image (amd64) / Push Docker image to multiple registries (push) Has been cancelled
Publish Docker image (arm64) / Push Docker image to multiple registries (push) Has been cancelled
Linux Release / release (push) Has been cancelled
macOS Release / release (push) Has been cancelled
Windows Release / release (push) Has been cancelled
2024-12-09 20:38:03 +08:00
lianghaoyuan
9076ec5c63
feat: 添加.env配置文件和初始化环境变量
2024-09-24 11:39:02 +08:00
liuzhifei
566e26a8c6
add log db
2024-08-13 10:28:35 +08:00
CalciumIon
fda2fd2e53
feat: 优化Gemini模型版本获取逻辑
2024-08-02 17:23:59 +08:00
CalciumIon
d06018cd3f
chore: gopool
Publish Docker image (amd64) / Push Docker image to multiple registries (push) Has been cancelled
Publish Docker image (arm64) / Push Docker image to multiple registries (push) Has been cancelled
Linux Release / release (push) Has been cancelled
macOS Release / release (push) Has been cancelled
Windows Release / release (push) Has been cancelled
2024-07-19 01:07:37 +08:00
CalciumIon
e6de0c0bae
feat: add UPDATE_TASK env
2024-07-18 17:26:21 +08:00
CalciumIon
6c4c9d1c08
feat: only update task on master node
2024-06-26 17:23:03 +08:00
Xiangyuan Liu
c724781aac
revert: hide web embed
2024-06-13 18:28:47 +08:00
Xiangyuan Liu
05a4646b44
feat: suno api 支持
...
feat: 调试 suno
feat: 补充suno 文档
2024-06-13 10:35:48 +08:00
CaIon
80695f3c05
feat: vite
2024-03-23 19:09:09 +08:00