one-api/relay/channel
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
..
ai360 feat: support moonshot now (close #804) 2024-02-18 16:17:19 +08:00
aiproxy fix: Update error handling to Laisky/errors/v2 package across project 2024-03-12 06:40:23 +00:00
ali fix: Update error handling to Laisky/errors/v2 package across project 2024-03-12 06:40:23 +00:00
anthropic fix: Update error handling to Laisky/errors/v2 package across project 2024-03-12 06:40:23 +00:00
baichuan feat: support baichuan's models now (close #1057) 2024-03-02 00:55:48 +08:00
baidu fix: Update error handling to Laisky/errors/v2 package across project 2024-03-12 06:40:23 +00:00
gemini fix: Update error handling to Laisky/errors/v2 package across project 2024-03-12 06:40:23 +00:00
groq feat: support groq now (close #1087) 2024-03-10 14:09:44 +08:00
minimax feat: support minimax's models now (close #354) 2024-03-02 01:24:28 +08:00
mistral feat: support Mistral's models now (close #1051) 2024-03-03 21:46:45 +08:00
moonshot feat: support moonshot now (close #804) 2024-02-18 16:17:19 +08:00
openai fix: Update error handling to Laisky/errors/v2 package across project 2024-03-12 06:40:23 +00:00
palm fix: Update error handling to Laisky/errors/v2 package across project 2024-03-12 06:40:23 +00:00
tencent fix: Update error handling to Laisky/errors/v2 package across project 2024-03-12 06:40:23 +00:00
xunfei fix: Update error handling to Laisky/errors/v2 package across project 2024-03-12 06:40:23 +00:00
zhipu fix: Update error handling to Laisky/errors/v2 package across project 2024-03-12 06:40:23 +00:00
common.go fix: Update error handling to Laisky/errors/v2 package across project 2024-03-12 06:40:23 +00:00
interface.go feat: support moonshot now (close #804) 2024-02-18 16:17:19 +08:00