one-api/controller
Laisky.Cai 849920b91f fix: Improve error handling and add checks in relay.go
- Refactor error handling in `relay.go` using the `errors` package
- Implement specific error handling for `specific_channel_id` in `shouldRetry` function
- Add checks for various status codes (`StatusTooManyRequests`, `Status5xx`, `Status2xx`) in `Relay` function
- Improve code quality by adding missing imports (`io`, `net/http`) in `relay.go`
2024-03-08 02:32:47 +00:00
..
billing.go refactor: use adaptor to do relay & test 2024-02-18 00:15:31 +08:00
channel-billing.go chore: update module name 2024-01-28 19:38:58 +08:00
channel-test.go fix: using the first available model if default model is not found (close #1021) 2024-03-03 22:58:41 +08:00
channel.go chore: update module name 2024-01-28 19:38:58 +08:00
github.go chore: update module name 2024-01-28 19:38:58 +08: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 chore: update module name 2024-01-28 19:38:58 +08:00
model.go Merge remote-tracking branch 'origin/upstream/main' 2024-03-05 01:02:35 +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: Improve error handling and add checks in relay.go 2024-03-08 02:32:47 +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 chore: update module name 2024-01-28 19:38:58 +08:00