one-api/common
Laisky.Cai d953da1ff2 fix: Upgrade error handling to errors/v2 package and refactor error messages.
- Refactor error handling using `errors/v2` package for improved error management and formatting
- Implement changes in relay/controller/text.go, controller/channel-test.go, controller/relay.go, common/message/email.go, relay/controller/audio.go, controller/channel-billing.go, relay/controller/helper.go, relay/channel/common.go, relay/channel/minimax/main.go, and common/message/main.go
- Add package imports and update package paths for better code organization
- Replace hardcoded strings with error variables for consistency and readability
- Implement secure methods for generating unique Message-ID
- Improve SMTP handling and authentication in email.go
- Update response handling and error messages for better user experience
- Add constant checks and modify functions based on imageRequest parameters in helper.go
- Use `http.NewRequest` instead of `fmt.Fprint` for improved request handling in relay/channel/common.go
- Update error handling and formatting for better consistency across all files
2024-03-12 06:43:54 +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: Upgrade error handling to errors/v2 package and refactor error messages. 2024-03-12 06:43:54 +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