one-api/controller
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
..
billing.go refactor: use adaptor to do relay & test 2024-02-18 00:15:31 +08:00
channel-billing.go fix: Upgrade error handling to errors/v2 package and refactor error messages. 2024-03-12 06:43:54 +00:00
channel-test.go fix: Upgrade error handling to errors/v2 package and refactor error messages. 2024-03-12 06:43:54 +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: Upgrade error handling to errors/v2 package and refactor error messages. 2024-03-12 06:43:54 +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