Calcium-Ion
ff31f7df1a
Merge pull request #2278 from seefs001/fix/release-version
...
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
fix: release workflow show version
2025-11-23 23:51:32 +08:00
Seefs
de4b52d320
fix: release workflow show version
2025-11-22 20:06:13 +08:00
CaIon
5a037f2acd
feat: Add CountToken configuration and update token counting logic
2025-11-22 17:15:34 +08:00
CaIon
4dbbf06adc
fix: Update GET_MEDIA_TOKEN_NOT_STREAM default value to false
2025-11-22 16:23:37 +08:00
Seefs
99055bab25
fix: boundary parser error (error parsing multipart form: multipart: NextPart: bufio: buffer full)
2025-11-16 14:09:10 +08:00
Sh1n3zZ
af671d34c3
feat: replicate channel flux model
2025-11-08 01:24:45 +08:00
Leon
71c26a5843
feat: add environment variable switch for critical rate limit
2025-11-06 15:23:34 +08:00
Seefs
a98e207ef7
feat: add ali wan video ( #2141 )
...
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
* feat: add ali wan video
* refactor: use same UnmarshalBodyReusable
* feat: enhance request body metadata
* feat: opt wan convertToOpenAIVideo
* feat: add wan support other param via json metadata
* refactor: remove unused code
* fix ali
---------
Co-authored-by: feitianbubu <feitianbubu@qq.com>
2025-10-31 16:51:05 +08:00
CaIon
602a92849c
fix(audio): add support for .opus files in audio duration calculation
2025-10-29 22:47:39 +08:00
CaIon
bbdc57c18c
refactor(channel_cache): improve channel selection logic by handling zero total weight and removing unnecessary variable
2025-10-29 21:49:06 +08:00
CaIon
a00c6393c5
feat: implement audio duration retrieval without ffmpeg dependencies
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-28 15:50:45 +08:00
feitianbubu
fe9b092b0b
feat: doubao-seedream support image edit
2025-10-23 21:19:33 +08:00
feitianbubu
a2d34b9e47
feat: add minimax api adaptor
2025-10-20 16:26:50 +08:00
CaIon
8ff87ae6c2
feat: add temporary TASK_PRICE_PATCH configuration to environment variables
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
2025-10-16 21:59:21 +08:00
CaIon
31e09b960f
refactor: aws
2025-10-15 16:44:33 +08:00
CaIon
f6bf150d21
fix: improve error handling for email sending failures
2025-10-13 19:21:46 +08:00
CaIon
5e1d7ab3b9
feat: add support for Sora channel type and OpenAI video endpoint
2025-10-13 19:21:45 +08:00
Seefs
5010f2d004
format: package name -> github.com/QuantumNous/new-api ( #2017 )
2025-10-11 15:30:09 +08:00
feitianbubu
1d1759aaae
feat: add sora video submit task
2025-10-09 15:00:02 +08:00
Seefs
b65e271971
Merge branch 'main-upstream' into pr/custom-currency-1923
...
# Conflicts:
# web/src/components/settings/personal/cards/AccountManagement.jsx
# web/src/components/table/channels/modals/EditChannelModal.jsx
# web/src/hooks/channels/useChannelsData.jsx
# web/src/hooks/common/useSidebar.js
# web/src/i18n/locales/fr.json
# web/src/pages/Setting/Operation/SettingsGeneral.jsx
2025-10-02 20:30:48 +08:00
CaIon
63bbd9e3c3
feat: add endpoint type selection to channel testing functionality
2025-09-30 16:52:14 +08:00
t0ng7u
8294a76bc2
💱 feat(settings): introduce site-wide quota display type (USD/CNY/TOKENS/CUSTOM)
...
Replace the legacy boolean “DisplayInCurrencyEnabled” with an injected, type-safe
configuration `general_setting.quota_display_type`, and wire it through the
backend and frontend.
Backend
- Add `QuotaDisplayType` to `operation_setting.GeneralSetting` with injected
registration via `config.GlobalConfig.Register("general_setting", ...)`.
Helpers: `IsCurrencyDisplay()`, `IsCNYDisplay()`, `GetQuotaDisplayType()`.
- Expose `quota_display_type` in `/api/status` and keep legacy
`display_in_currency` for backward compatibility.
- Logger: update `LogQuota` and `FormatQuota` to support USD/CNY/TOKENS. When
CNY is selected, convert using `operation_setting.USDExchangeRate`.
- Controllers:
- `billing`: compute subscription/usage amounts based on the selected type
(USD: divide by `QuotaPerUnit`; CNY: USD→CNY; TOKENS: keep raw tokens).
- `topup` / `topup_stripe`: treat inputs as “amount” for USD/CNY and as
token-count for TOKENS; adjust min topup and pay money accordingly.
- `misc`: include `quota_display_type` in status payload.
- Compatibility: in `model/option.UpdateOption`, map updates to
`DisplayInCurrencyEnabled` → `general_setting.quota_display_type`
(true→USD, false→TOKENS). Keep exporting the legacy key in `OptionMap`.
Frontend
- Settings: replace the “display in currency” switch with a Select
(`general_setting.quota_display_type`) offering USD / CNY / Tokens.
Provide fallback mapping from legacy `DisplayInCurrencyEnabled`.
- Persist `quota_display_type` to localStorage (keep `display_in_currency`
for legacy components).
- Rendering helpers: base all quota/price rendering on `quota_display_type`;
use `usd_exchange_rate` for CNY symbol/values.
- Pricing page: default view currency follows site display type (USD/CNY),
while TOKENS mode still allows per-view currency toggling when needed.
Notes
- No database migrations required.
- Legacy clients remain functional via compatibility fields.
2025-09-29 23:23:31 +08:00
dd
40a6d957b5
Merge branch 'QuantumNous:main' into main
2025-09-29 14:13:50 +08:00
CaIon
da88e746ef
feat: add startup logging with network IPs and container detection
2025-09-27 16:30:24 +08:00
CaIon
b836bce81c
feat: add startup logging with network IPs and container detection
2025-09-27 16:19:58 +08:00
creamlike1024
7af1dc42d4
fix: use u.Hostname() instead of u.Host to avoid ipv6 host parse failed
2025-09-17 23:47:59 +08:00
creamlike1024
82163b4be7
feat: 添加域名启用ip过滤开关
2025-09-17 23:46:04 +08:00
creamlike1024
f9a6e7f04f
feat: remove ValidateURLWithDefaults
2025-09-17 23:29:18 +08:00
creamlike1024
b46bffde03
feat: ssrf支持域名和ip黑白名单过滤模式
2025-09-17 15:41:21 +08:00
DD
71d41d6eaa
Merge branch 'main' of github.com:danding5/new-api
...
# Conflicts:
# relay/relay_adaptor.go
2025-09-15 14:31:06 +08:00
CaIon
c3f5478593
feat: implement SSRF protection settings and update related references
2025-09-13 18:15:03 +08:00
Seefs
8d32b08d44
Merge branch 'alpha' into feat-vertex-veo
2025-09-13 13:10:39 +08:00
DD
2fb5fc231d
Merge branches 'main' and 'main' of github.com:danding5/new-api
...
# Conflicts:
# common/api_type.go
# constant/api_type.go
# constant/channel.go
# relay/relay_adaptor.go
# web/src/constants/channel.constants.js
2025-09-10 18:33:42 +08:00
DD
cfbc2df3f8
add submodel.ai
2025-09-08 16:21:21 +08:00
CaIon
f0183785c9
feat(option): enhance UpdateOption to handle various value types and improve validation
2025-09-03 14:30:25 +08:00
t0ng7u
ed71c9fcf3
🎨 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
2025-08-31 13:08:34 +08:00
CaIon
f7c4eda0f3
Revert "refactor: replace DeepCopy with Copy for request handling consistency"
...
This reverts commit c21219fcff4ed2fd65f8a3eb7f7058cc7c972741.
2025-08-28 15:11:55 +08:00
CaIon
c21219fcff
refactor: replace DeepCopy with Copy for request handling consistency
2025-08-28 14:57:47 +08:00
Sh1n3zZ
cf8b021b61
feat: vertex veo ( #1450 )
2025-08-27 18:06:47 +08:00
CaIon
1b8bcfb000
fix: update error types for upstream errors and JSON marshal failure
Publish Docker image (Multi Registries) / Push Docker image to multiple registries (push) Has been cancelled
2025-08-26 16:26:56 +08:00
CaIon
0e34de8fe2
feat: replace pcopy with jinzhu/copier for deep copy functionality
2025-08-26 13:40:41 +08:00
CaIon
3e5bc637de
fix: Invalid type for 'input[x].summary': expected an array of objects, but got null instead
Publish Docker image (Multi Registries) / Push Docker image to multiple registries (push) Has been cancelled
2025-08-26 13:17:31 +08:00
CaIon
13301d8544
fix: enhance error handling for invalid request types in relay handlers
2025-08-23 13:34:56 +08:00
CaIon
1ee3d1cc50
feat: 修复重试后请求结构混乱,修复rerank端点无法使用
2025-08-23 13:12:15 +08:00
CaIon
4858e98b2d
refactor: simplify domain masking logic by removing URL check
2025-08-15 13:46:46 +08:00
CaIon
07137e6bb8
refactor: update token type handling and improve token counting logic
2025-08-15 13:28:03 +08:00
CaIon
8eb17f24bb
refactor: improve request type validation and enhance sensitive information masking
2025-08-15 13:20:36 +08:00
CaIon
dba74e5b05
refactor: add email masking function and enhance RelayInfo logging
...
This commit introduces a new function, MaskEmail, to mask user email addresses in logs, preventing PII leakage. Additionally, the RelayInfo logging has been updated to utilize this new masking function, ensuring sensitive information is properly handled. The channel test logic has also been improved to dynamically determine the relay format based on the request path.
2025-08-15 12:50:27 +08:00
CaIon
013b30c228
refactor: enhance error handling and masking for model not found scenarios
2025-08-15 12:41:05 +08:00
CaIon
112de0b6a6
refactor: enhance quota handling and logging for pre-consume operations
2025-08-14 21:30:03 +08:00