feat: add OpenRouter balance update functionality and improve code formatting

This commit is contained in:
JustSong
2025-02-11 00:35:06 +08:00
parent eb96aa635e
commit 4d011c5f98
3 changed files with 28 additions and 0 deletions

View File

@@ -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()