mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-10-22 04:13:53 +00:00
feat: add OpenRouter balance update functionality and improve code formatting
This commit is contained in:
@@ -153,6 +153,7 @@ func testChannel(ctx context.Context, channel *model.Channel, request *relaymode
|
||||
rawResponse := w.Body.String()
|
||||
_, responseMessage, err = parseTestResponse(rawResponse)
|
||||
if err != nil {
|
||||
logger.SysError(fmt.Sprintf("failed to parse error: %s, \nresponse: %s", err.Error(), rawResponse))
|
||||
return "", err, nil
|
||||
}
|
||||
result := w.Result()
|
||||
|
Reference in New Issue
Block a user