Calcium-Ion
358af20ad1
Merge pull request #1207 from QuantumNous/user_group_ratio
...
feat: 分组特殊倍率
2025-06-13 01:25:46 +08:00
creamlike1024
a28ab3628a
feat: 分组特殊倍率
2025-06-11 23:46:59 +08:00
CaIon
f124404f07
🔧 fix(stream_scanner): improve resource management and error handling in StreamScannerHandler
2025-06-11 00:18:16 +08:00
CaIon
896e1d978f
🔧 fix(token_counter): enhance token encoder caching and concurrency handling
2025-06-10 18:55:21 +08:00
CaIon
6c4f64c397
🔧 fix(token_counter): refactor token encoder initialization and retrieval logic
2025-06-10 18:51:26 +08:00
CaIon
d1f493bf17
🔧 fix(token_counter): update token encoder implementation and dependencies
2025-06-10 18:04:49 +08:00
Xyfacai
b778cd2b23
refactor: message content 改成 any
...
refactor: message content 改成 any
2025-06-07 23:47:22 +08:00
creamlike1024
9496dac448
feat: gemini audio input billing
2025-06-07 12:26:23 +08:00
neotf
3665ad672e
feat: support claude cache and thinking for upstream [OpenRouter] ( #983 )
...
* feat: support claude cache for upstream [OpenRouter]
* feat: support claude thinking for upstream [OpenRouter]
* feat: reasoning is common params for OpenRouter
2025-06-05 17:35:48 +08:00
CaIon
4825404d37
feat: enhance image decoding logic to handle base64 file types and improve error handling
2025-05-15 14:51:33 +08:00
creamlike1024
d985563516
feat: add support for socks5h
2025-05-11 17:00:33 +08:00
creamlike1024
3d4bd76083
feat: add option to allow worker HTTP image requests
2025-05-09 02:00:42 +08:00
CaIon
e097d5a538
feat: add video URL support in MediaContent and update token counting logic
2025-05-03 21:12:07 +08:00
CaIon
ee4f27d01b
refactor: simplify model prefix checks and update message role for o-series models
2025-04-17 16:50:52 +08:00
neotf
eee6dee599
fix: wrong systemStr for Claude (OpenAI Upstream)
2025-04-14 01:09:02 +08:00
CaIon
90576d0261
feat: enhance Claude to OpenAI request conversion with additional relay info support
2025-04-11 19:13:38 +08:00
CaIon
4b3e30e669
feat: 完善openai转claude支持
2025-04-11 18:28:50 +08:00
CaIon
cca9c0479f
feat: enhance file handling and logging in the application
2025-04-11 16:23:54 +08:00
CaIon
8a2332074f
refactor: move maxFileSize variable inside GetFileBase64FromUrl function
2025-04-11 15:53:23 +08:00
1808837298@qq.com
dd82618c05
refactor: Improve token quota consumption logic
2025-03-17 17:52:54 +08:00
1808837298@qq.com
b3b1c803fc
feat: Introduce JSON decoding utility functions and update error handling in Claude and OpenAI response structures
2025-03-16 18:34:39 +08:00
1808837298@qq.com
dd393cd0d9
feat: support dify upload image file
2025-03-15 19:10:12 +08:00
1808837298@qq.com
7e46d4217d
feat: 初步兼容流模式下openai渠道类型转为claude格式访问 #862
2025-03-13 19:32:08 +08:00
1808837298@qq.com
bd48f43410
feat: claude relay
2025-03-12 21:31:46 +08:00
1808837298@qq.com
1819c4d5f5
feat(error): Enhance error handling with optional detailed error messages
2025-03-11 17:25:06 +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
bb848b2fe0
refactor: Improve quota calculation precision using floating-point arithmetic
2025-03-08 16:44:08 +08:00
1808837298@qq.com
4f194f4e6a
feat: Implement cache token ratio for more precise token pricing
2025-03-08 01:30:50 +08:00
1808837298@qq.com
7f74a9664e
feat: Enhance channel status update with success tracking and dynamic notification #812
2025-03-06 17:46:03 +08:00
1808837298@qq.com
a3739f67f7
fix: Handle error in NotifyRootUser and log system errors #812
2025-03-06 17:25:39 +08:00
1808837298@qq.com
e3f9ef1894
fix: error NotifyRootUser #812
2025-03-06 15:56:42 +08:00
1808837298@qq.com
37a83ecc33
refactor: Centralize stream handling and helper functions in relay package
2025-03-05 19:47:41 +08:00
1808837298@qq.com
98b27a17a6
refactor: Extract operation-related settings into a separate package
2025-03-04 18:52:08 +08:00
1808837298@qq.com
6ecfb81cbc
feat: Improve image download and validation in GetImageFromUrl
2025-03-03 16:15:04 +08:00
1808837298@qq.com
7dbb6b017c
feat: Add self-use mode for model ratio and price configuration
...
- Introduce `SelfUseModeEnabled` setting to allow flexible model ratio configuration
- Update error handling to provide more informative messages when model ratios are not set
- Modify pricing and relay logic to support self-use mode
- Add UI toggle for enabling self-use mode in operation settings
- Implement fallback mechanism for model ratios when self-use mode is enabled
2025-03-01 21:13:48 +08:00
1808837298@qq.com
d6fd50e382
feat: add new GPT-4.5 preview model ratios
2025-02-28 19:17:15 +08:00
1808837298@qq.com
13ab0f8e4f
fix: gemini&claude tool call format #795 #766
2025-02-26 23:56:10 +08:00
1808837298@qq.com
069f2672c1
refactor: Enhance user context and quota management
...
- Add new context keys for user-related information
- Modify user cache and authentication middleware to populate context
- Refactor quota and notification services to use context-based user data
- Remove redundant database queries by leveraging context information
- Update various components to use new context-based user retrieval methods
2025-02-25 20:56:16 +08:00
1808837298@qq.com
7ff4cebdbe
feat: Enhance token counting and content parsing for messages
2025-02-24 14:18:15 +08:00
1808837298@qq.com
1f4f9123aa
refactor: Optimize sensitive word detection and text processing
2025-02-21 17:05:35 +08:00
1808837298@qq.com
9cc6385b0c
feat: Enhance sensitive word detection with detailed logging
2025-02-21 16:57:30 +08:00
1808837298@qq.com
2d42145b66
refactor: Improve quota error messages with formatted quota display
2025-02-21 16:42:48 +08:00
1808837298@qq.com
06da65a9d0
refactor: Simplify model mapping and pricing logic across relay modules
2025-02-20 16:41:46 +08:00
1808837298@qq.com
5937d850d9
refactor: Replace manual goroutine creation with gopool.Go
2025-02-19 18:38:29 +08:00
1808837298@qq.com
90191b8d5b
chore: update env name and README
2025-02-19 15:54:33 +08:00
1808837298@qq.com
4e871507cf
feat: Implement comprehensive webhook notification system
2025-02-19 15:40:54 +08:00
1808837298@qq.com
b1847509a4
refactor: Optimize user caching and token retrieval methods
2025-02-19 15:12:26 +08:00
1808837298@qq.com
0907a078b4
refactor: Simplify root user notification and remove global email variable
...
- Remove global `RootUserEmail` variable
- Modify channel testing and user notification methods to use `GetRootUser()`
- Update user cache and notification service to use more consistent user base type
- Add new channel test notification type
2025-02-18 15:59:17 +08:00
1808837298@qq.com
56f6b2ab56
feat: Implement notification rate limiting mechanism
...
- Add in-memory and Redis-based notification rate limiting
- Create configurable hourly notification limits
- Implement notification limit checking for user notifications
- Add environment variables for customizing notification limits
2025-02-18 15:30:43 +08:00
1808837298@qq.com
3da1344897
feat: Add user notification settings with quota warning and multiple notification methods
...
- Implement user notification settings with email and webhook options
- Add new user settings for quota warning threshold and notification preferences
- Create backend API and database support for user notification configuration
- Enhance frontend personal settings with notification configuration UI
- Support custom notification email and webhook URL
- Add service layer for sending user notifications
2025-02-18 14:54:21 +08:00