one-api/controller
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
..
billing.go refactor: use adaptor to do relay & test 2024-02-18 00:15:31 +08:00
channel-billing.go fix: Update error handling to Laisky/errors/v2 package across project 2024-03-12 06:40:23 +00:00
channel-test.go fix: Update error handling to Laisky/errors/v2 package across project 2024-03-12 06:40:23 +00:00
channel.go feat: able to only test disabled channels (#1090) 2024-03-10 18:34:57 +08:00
github.go fix: Update error handling to Laisky/errors/v2 package across project 2024-03-12 06:40:23 +00:00
group.go feat: Handle errors, validate model names, and calculate quota usage (#978) 2024-02-12 21:35:40 +08:00
log.go chore: update module name 2024-01-28 19:38:58 +08:00
misc.go feat: able to send alert message via message pusher (close #993) 2024-03-10 19:16:06 +08:00
model.go Merge remote-tracking branch 'origin/upstream/main' 2024-03-11 09:32:11 +00:00
option.go chore: update module name 2024-01-28 19:38:58 +08:00
redemption.go chore: update module name 2024-01-28 19:38:58 +08:00
relay.go fix: Update error handling to Laisky/errors/v2 package across project 2024-03-12 06:40:23 +00:00
token.go Merge remote-tracking branch 'origin/upstream/main' 2024-01-28 13:44:16 +00:00
user.go feat: Enhance security and fix bugs in authentication 2024-03-05 13:07:07 +00:00
wechat.go fix: Update error handling to Laisky/errors/v2 package across project 2024-03-12 06:40:23 +00:00