fix: openai 格式请求 claude 没计费 create cache token

This commit is contained in:
Xyfacai
2025-09-10 15:30:23 +08:00
parent 3f9698bb47
commit fcdfd027cd
10 changed files with 31 additions and 13 deletions

View File

@@ -235,7 +235,7 @@ func testChannel(channel *model.Channel, testModel string) testResult {
if resp != nil {
httpResp = resp.(*http.Response)
if httpResp.StatusCode != http.StatusOK {
err := service.RelayErrorHandler(httpResp, true)
err := service.RelayErrorHandler(c.Request.Context(), httpResp, true)
return testResult{
context: c,
localErr: err,