one-api/common
Laisky.Cai 54203e3d30 fix: Update error handling to Laisky/errors/v2 package across project
- Updated error handling across multiple files with `Laisky/errors/v2` package
- Replaced hardcoded error messages with `Laisky/errors` in relay/channel/tencent/adaptor.go
- Added a function to check if a request should be retried in relay/controller/relay.go
- Removed unused imports and variables, and updated comments in various files
- Changed Redis cache handling in model/cache.go
- Refactored error handling in relay/channel/tencent/main.go and relay/channel/baidu/main.go
- Updated import paths and error handling in model/user.go, model/redemption.go, and controller/github.go
- Added import for tiktoken-go package in relay/channel/openai/token.go
- Added GetSign and ParseConfig functions in relay/channel/tencent/main.go
- Replaced specific error imports with a more general one in relay/channel/ali/adaptor.go
- Updated import comments and function calls in relay/channel/ali/adaptor.go
- Added checks and custom error messages in model/token.go
- Removed unused functions and variables in relay/channel/baidu/adaptor.go
- Imported "github.com/Laisky/errors/v2" package in controller/channel-billing.go
- Removed unused import packages in [relay/channel/tencent/adaptor.go](http://relay/channel/tencent/adaptor.go) and relay/channel/palm/adaptor.go
- Updated go.mod and go.sum files with new dependencies and versions
2024-03-12 06:40:23 +00:00
..
blacklist fix: add user to blacklist when it's banned or deleted, and make deletion soft (close #473, close #791) 2024-03-10 15:56:19 +08:00
config Merge remote-tracking branch 'origin/upstream/main' 2024-03-11 09:32:11 +00:00
helper feat: able to disable channel by success rate 2024-03-10 17:57:47 +08:00
image Merge remote-tracking branch 'origin/upstream/main' 2024-01-28 13:44:16 +00:00
logger chore: only use one log file (close #1116) 2024-03-10 23:44:48 +08:00
message fix: Update error handling to Laisky/errors/v2 package across project 2024-03-12 06:40:23 +00:00
constants.go fix: add user to blacklist when it's banned or deleted, and make deletion soft (close #473, close #791) 2024-03-10 15:56:19 +08:00
crypto.go Initial commit 2023-04-22 20:39:27 +08:00
custom-event.go refactor: rename file to conform to standards 2023-05-13 15:43:55 +08:00
database.go chore: drop idx_channels_key on start 2024-03-11 02:24:58 +08:00
embed-file-system.go feat: Handle errors, validate model names, and calculate quota usage (#978) 2024-02-12 21:35:40 +08:00
gin.go fix: fix getAndValidateTextRequest failed: unexpected end of JSON input (close #1043) 2024-02-26 22:52:16 +08:00
group-ratio.go chore: update module name 2024-01-28 19:38:58 +08:00
init.go Merge remote-tracking branch 'origin/upstream/main' 2024-01-28 13:44:16 +00:00
model-ratio.go Merge remote-tracking branch 'origin/upstream/main' 2024-03-11 09:32:11 +00:00
random.go feat: switch priority when retry (close #1048) 2024-03-03 22:14:07 +08:00
rate-limit.go Initial commit 2023-04-22 20:39:27 +08:00
redis.go chore: update module name 2024-01-28 19:38:58 +08:00
utils.go chore: update module name 2024-01-28 19:38:58 +08:00
validate.go Initial commit 2023-04-22 20:39:27 +08:00
verification.go Initial commit 2023-04-22 20:39:27 +08:00