Seefs
0689600103
Merge pull request #3066 from seefs001/fix/aws-header-override
...
Fix/aws header override
2026-03-02 18:54:56 +08:00
CaIon
f60fce6584
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
2026-02-05 00:09:32 +08:00
Seefs
d7d3a2f763
feat: channel affinity ( #2669 )
...
* feat: channel affinity
* feat: channel affinity -> model setting
* fix: channel affinity
* feat: channel affinity op
* feat: channel_type setting
* feat: clean
* feat: cache supports both memory and Redis.
* feat: Optimise ui/ux
* feat: Optimise ui/ux
* feat: Optimise codex usage ui/ux
* feat: Optimise ui/ux
* feat: Optimise ui/ux
* feat: Optimise ui/ux
* feat: If the affinitized channel fails and a retry succeeds on another channel, update the affinity to the successful channel
2026-01-26 19:57:41 +08:00
Seefs
fcafadc6bb
feat: pyroscope integrate
2025-12-13 13:49:38 +08:00
Calcium-Ion
5212fbd73d
Merge pull request #2358 from seefs001/fix/regrex-repeat-compile
...
fix: regex repeat compile
2025-12-09 14:01:07 +08:00
borx
3d282ac548
fix(go.mod): 更新modernc.org/sqlite依赖项版本
2025-12-08 01:16:30 +08:00
Seefs
896e4ac671
fix: regex repeat compile
2025-12-03 00:41:47 +08:00
dependabot[bot]
0b37bdddc6
chore(deps): bump golang.org/x/crypto from 0.42.0 to 0.45.0
...
Bumps [golang.org/x/crypto](https://github.com/golang/crypto ) from 0.42.0 to 0.45.0.
- [Commits](https://github.com/golang/crypto/compare/v0.42.0...v0.45.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/crypto
dependency-version: 0.45.0
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-11-20 02:46:07 +00:00
CaIon
2b70095b47
feat: implement audio duration retrieval without ffmpeg dependencies
2025-10-28 15:50:45 +08:00
Seefs
e1c7a4f41f
format: package name -> github.com/QuantumNous/new-api ( #2017 )
2025-10-11 15:30:09 +08:00
Seefs
c4e0fc1837
chore: go version & sonic dep
2025-09-30 14:38:20 +08:00
Seefs
dcf4336c75
feat: passkey
2025-09-29 17:45:09 +08:00
CaIon
1cc07546cb
feat: replace pcopy with jinzhu/copier for deep copy functionality
2025-08-26 13:40:41 +08:00
CaIon
4f23e53002
feat: 修复重试后请求结构混乱,修复rerank端点无法使用
2025-08-23 13:12:15 +08:00
Nekohy
dd497d5bd8
feats: the flexable params override and compatible format
2025-08-16 11:27:47 +08:00
wzxjohn
d247f90571
feat: support aws bedrock apikey
2025-08-05 23:01:30 +08:00
Seefs
d85eeabf11
fix: coderabbit review
2025-08-03 10:41:00 +08:00
Seefs
c784a70277
feat: implement two-factor authentication (2FA) support with user login and settings integration
2025-08-02 14:53:28 +08:00
Seefs
f995e31d04
Revert "feat: add Claude Code channel support with OAuth integration"
2025-07-31 22:08:16 +08:00
Seefs
bca78beb1b
feat: add claude code channel
2025-07-26 18:06:46 +08:00
wzxjohn
7443129e18
feat: add stripe pay api support
2025-07-10 16:29:38 +08:00
CaIon
d1f493bf17
🔧 fix(token_counter): update token encoder implementation and dependencies
2025-06-10 18:04:49 +08:00
wzxjohn
c433af284c
feat: add oidc support
2025-03-11 15:52:03 +08:00
1808837298@qq.com
68097c132d
feat: Improve decimal precision for quota and payment calculations
...
- Added github.com/shopspring/decimal for precise floating-point calculations
- Refactored quota and payment calculations in multiple files to use decimal arithmetic
- Updated go.mod and go.sum to include decimal library
- Improved precision in topup, relay, and quota service calculations
- Added support for more OpenAI model variants in cache ratio settings
2025-03-08 21:55:50 +08:00
1808837298@qq.com
3a2e22443f
chore: replace sqlite lib with prue go lib
2025-02-11 18:34:34 +08:00
CalciumIon
79de02b05f
chore: Update dependencies and refactor JSON handling #614
...
- Removed the `bytedance/sonic` dependency and replaced its usage with the standard `encoding/json` package for JSON marshalling in `relay-text.go`.
- Updated `go.mod` to reflect the removal of `sonic` and adjusted the version of `sonic/loader`.
- Cleaned up `go.sum` to ensure consistency with the updated dependencies.
2024-12-12 14:14:24 +08:00
CalciumIon
98373f486e
feat: update go-epay
2024-12-05 17:45:54 +08:00
CalciumIon
45bf496183
Update go.mod
2024-12-05 15:25:42 +08:00
CalciumIon
4c809277aa
feat: support br
2024-12-04 23:53:02 +08:00
CalciumIon
e8286e479b
chore: go.mod
2024-11-19 15:14:40 +08:00
lianghaoyuan
84f40b63b2
feat: 添加.env配置文件和初始化环境变量
2024-09-24 11:39:02 +08:00
CalciumIon
c41820541d
Update go.mod
2024-08-27 20:30:46 +08:00
CalciumIon
ac4262c542
feat: support vertex ai #377
2024-08-27 20:19:51 +08:00
CalciumIon
e84300f4ae
chore: gopool
2024-07-19 01:07:37 +08:00
1808837298@qq.com
d2a0d9f73b
feat: update tiktoken
2024-05-30 21:45:58 +08:00
CaIon
9dcec2772d
chore: update tiktoken ( #254 )
2024-05-15 14:18:29 +08:00
CaIon
9294127686
feat: support aws claude
2024-04-23 11:44:40 +08:00
CaIon
2d1d1b4631
update go-epay
2024-04-07 14:42:03 +08:00
CaIon
7a663d26ec
feat: 初步兼容敏感词过滤
2024-03-20 17:07:42 +08:00
CaIon
2d2fec24d0
chore: update dependency
2024-03-15 18:35:15 +08:00
CaIon
4036355fae
bump golang.org/x/crypto from 0.14.0 to 0.17.0
2023-12-27 16:32:42 +08:00
CaIon
fa2efb7357
bump golang.org/x/crypto from 0.14.0 to 0.17.0
2023-12-27 15:39:29 +08:00
CaIon
a10f7cfbe1
upgrade pkg
2023-11-24 04:44:37 +08:00
Xyfacai
a5e973fb69
optimize: upgrade tiktoken pkg
2023-11-23 21:41:50 +08:00
CaIon
9d191c10a9
添加pprof性能分析
2023-11-21 18:11:07 +08:00
CaIon
e5c2524f15
fix image token calculate
2023-11-17 20:32:40 +08:00
CaIon
fc2ef52366
Merge remote-tracking branch 'origin/main'
...
# Conflicts:
# README.md
# go.mod
# go.sum
# model/log.go
# web/src/App.js
# web/src/components/ChannelsTable.js
2023-10-16 17:31:26 +08:00
dependabot[bot]
114587b46f
chore(deps): bump golang.org/x/net from 0.10.0 to 0.17.0 ( #591 )
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.10.0 to 0.17.0.
- [Commits](https://github.com/golang/net/compare/v0.10.0...v0.17.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-14 12:34:46 +08:00
CaIon
d9d5b001a7
merge
2023-08-25 01:03:45 +08:00
CaIon
c0f0201f5f
Merge remote-tracking branch 'origin/main'
...
# Conflicts:
# controller/relay-text.go
# go.mod
# web/src/components/PersonalSetting.js
# web/src/components/TokensTable.js
# web/src/pages/Home/index.js
2023-08-25 00:51:02 +08:00