mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-12-22 07:45:57 +08:00
fix: billing status code check
This commit is contained in:
@@ -55,7 +55,7 @@ func testChannel(channel *model.Channel, request ChatRequest) error {
|
||||
return err
|
||||
}
|
||||
|
||||
if resp.StatusCode != 200 {
|
||||
if resp.StatusCode != http.StatusOK {
|
||||
return errors.New("invalid status code: " + strconv.Itoa(resp.StatusCode))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user