one-api/relay/channel
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
..
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 fix: Upgrade error handling to errors/v2 package and refactor error messages. 2024-03-12 06:43:54 +00: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: Upgrade error handling to errors/v2 package and refactor error messages. 2024-03-12 06:43:54 +00:00
interface.go feat: support moonshot now (close #804) 2024-02-18 16:17:19 +08:00