CaIon
7e3e9b1a96
refactor: Reducing the lock duration to the minimum necessary time in CacheGetRandomSatisfiedChannel function
2025-04-29 15:57:21 +08:00
IcedTangerine
d402f5a5d9
Merge pull request #1008 from JoeyLearnsToCode/feat-search-channel-by-url
...
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
feat: support searching channels by base url
2025-04-28 13:15:49 +08:00
JoeyLearnsToCode
c56ec3b3ea
feat: support searching channels by base url
2025-04-28 11:38:53 +08:00
wzxjohn
45073b3b2b
feat: improve log delete api
2025-04-28 11:25:04 +08:00
creamlike1024
4f123cf9f4
Merge branch 'error-logs' of github.com:zenghongtu/new-api into zenghongtu-error-logs
2025-04-28 11:06:32 +08:00
creamlike1024
fea6f17e80
fix: GetMaxUserId use Unscope, close #987
2025-04-25 16:13:11 +08:00
jasonzeng
75f0cb8eb0
feat: add error logging functionality to relay and update logs table for error type display
2025-04-12 00:43: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
eca18ce25c
fix: Improve setup check logic and logging for system initialization
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-04 21:27:24 +08:00
CaIon
f33ebc8e2c
✨ feat: Implement system setup functionality
2025-04-03 18:57:15 +08:00
JoeyLearnsToCode
f00ac5f27b
feat: Add Parameters Override
2025-03-29 14:39:39 +08:00
Seefs
884e25325f
feat: Support postgresql:// dsn format
2025-03-12 21:08:47 +08:00
1808837298@qq.com
3ede51a9a7
refactor: Remove OIDC configuration from option initialization
2025-03-11 22:03:20 +08:00
1808837298@qq.com
9f3cc03508
refactor: Migrate OIDC configuration to system settings
2025-03-11 22:00:31 +08:00
wzxjohn
bdb1a2fcb9
feat: add oidc support
2025-03-11 15:52:03 +08:00
1808837298@qq.com
abd5de7902
refactor: Make Channel Setting nullable and improve setting handling #836
2025-03-09 23:42:48 +08:00
1808837298@qq.com
6f9412ead3
feat: Introduce configurable docs link and remove hardcoded chat links
...
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
- Added a new GeneralSetting struct to manage configurable docs link
- Removed hardcoded ChatLink and ChatLink2 variables across multiple files
- Updated frontend components to dynamically render docs link from status
- Simplified chat and link-related logic in various components
- Added a warning modal for quota per unit setting in operation settings
2025-03-09 18:31:16 +08:00
1808837298@qq.com
a92d9b12f8
refactor: Update topup amount type from int to int64 for improved precision
2025-03-08 21:59:18 +08:00
1808837298@qq.com
b640118d74
feat: Implement cache token ratio for more precise token pricing
2025-03-08 01:30:50 +08:00
1808837298@qq.com
783c60ee4d
feat: Enhance channel status update with success tracking and dynamic notification #812
2025-03-06 17:46:03 +08:00
1808837298@qq.com
da79af07d2
refactor: Extract operation-related settings into a separate package
2025-03-04 18:52:08 +08:00
1808837298@qq.com
35cd4fde3a
refactor: Add index to Username column in Log model
2025-03-02 17:57:52 +08:00
1808837298@qq.com
8c0219ebe5
fix: Correct option map key for PreConsumedQuota
2025-03-01 22:37:14 +08:00
1808837298@qq.com
485face2c0
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
3447df85c4
feat: add new GPT-4.5 preview model ratios
2025-02-28 19:17:15 +08:00
1808837298@qq.com
5371af0b42
feat: Refactor model configuration management with new config system
...
- Introduce a new configuration management approach for model-specific settings
- Update Gemini settings to use the new config system with more flexible management
- Add support for dynamic configuration updates in option handling
- Modify Claude and Vertex adaptors to use new configuration methods
- Enhance web interface to support namespaced configuration keys
2025-02-27 20:49:34 +08:00
1808837298@qq.com
8a30d64a75
feat: Add Gemini version settings configuration support ( close #568 )
2025-02-26 18:19:09 +08:00
1808837298@qq.com
0a369cc193
feat: Add Gemini safety settings configuration support ( close #703 )
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-02-26 16:54:43 +08:00
1808837298@qq.com
d04d78a116
refactor: Enhance user context and quota management
...
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
- 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
1763145fea
feat: Add model request rate limiting functionality
2025-02-24 16:20:55 +08:00
1808837298@qq.com
1e0b414fc0
refactor: Simplify model mapping and pricing logic across relay modules
2025-02-20 16:41:46 +08:00
1808837298@qq.com
1ae0a38485
refactor: Optimize user caching and token retrieval methods
2025-02-19 15:12:26 +08:00
1808837298@qq.com
83e161a1d4
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
0fcd243f56
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
1808837298@qq.com
025b6d1226
feat: Add automatic channel disabling based on configurable keywords
...
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
- Introduce AutomaticDisableKeywords setting to dynamically control channel disabling
- Implement AC search for matching error messages against disable keywords
- Add frontend UI for configuring automatic disable keywords
- Update localization with new keyword-based channel disabling feature
- Refactor sensitive word and AC search logic to support multiple keyword lists
2025-02-13 16:39:17 +08:00
1808837298@qq.com
5665b1a58b
refactor: Optimize log retrieval with separate channel name fetching ( fix #751 )
...
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
- Remove inline channel join in log queries
- Implement separate channel name lookup for logs
- Improve performance by fetching channel names in a single query
- Ensure channel names are correctly associated with logs
2025-02-12 19:19:13 +08:00
1808837298@qq.com
4d6bce1ddd
feat: Add support for VolcEngine (Doubao) channel #313 #734
2025-02-11 23:47:15 +08:00
1808837298@qq.com
0be6c5ee69
chore: replace sqlite lib with prue go lib
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-02-11 18:34:34 +08:00
1808837298@qq.com
276f9991c5
fix: channels model_mapping
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-02-06 19:51:33 +08:00
1808837298@qq.com
c8a8526ff3
feat: modify channel model_mapping column type to TEXT
...
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 `ModelMapping` column type from varchar(1024) to TEXT in channels table
- Add MySQL migration script to alter column type during database initialization
- Improve database schema flexibility for storing complex model mappings
2025-02-06 14:35:14 +08:00
1808837298@qq.com
881be9a3ec
feat: add demo site configuration flag
...
- Introduce `DemoSiteEnabled` variable in operation settings
- Provide a configurable flag to enable/disable demo site functionality
2025-02-04 14:15:01 +08:00
1808837298@qq.com
4470ef97f2
fix: clear channel name in user logs
2025-01-27 13:31:24 +08:00
1808837298@qq.com
1ae20bdd89
refactor: update log queries to explicitly reference 'logs' table for clarity and consistency
2025-01-22 13:37:32 +08:00
Lilo
a335d9e1f4
Add channel name (tooltip / detail) to logs
2025-01-09 17:07:28 +08:00
1808837298@qq.com
aa2ac4766e
Enhance user search functionality to support ID and keyword searches. Updated query conditions to allow searching by user ID alongside username, email, and display name. Improved handling of numeric and string keywords in search queries.
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-01-06 15:20:38 +08:00
1808837298@qq.com
f11148bccf
revert cache.go
2025-01-05 22:12:39 +08:00
Calcium-Ion
3dff0d498f
2025-01-05 22:01:36 +08:00
Calcium-Ion
e275229597
Fix channel model length issue
...
Fixes #691
---
For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/Calcium-Ion/new-api/issues/691?shareId=XXXX-XXXX-XXXX-XXXX ).
2025-01-05 21:55:25 +08:00
delph1s
7244adada5
fix: try to fix pgsql #685
2025-01-02 00:14:16 +08:00
CalciumIon
97d0e6d2cd
feat: implement pagination and total count for redemptions API #386
...
- Updated GetAllRedemptions and SearchRedemptions functions to return total count along with paginated results.
- Modified API endpoints to accept page size as a parameter, enhancing flexibility in data retrieval.
- Adjusted RedemptionsTable component to support pagination and display total count, improving user experience.
- Ensured consistent handling of pagination across related components, including LogsTable and UsersTable.
2024-12-31 15:28:25 +08:00