feat: 初步兼容生成内容检查

This commit is contained in:
CaIon committed 2024-03-20 19:00:51 +08:00
1 parent 14892a6582
commit 580f2894ac
21 files changed
+141 -63

No files matched your search

+1 -1
View File
@@ -87,7 +87,7 @@ func testChannel(channel *model.Channel, testModel string) (err error, openaiErr
err := relaycommon.RelayErrorHandler(resp)
return fmt.Errorf("status code %d: %s", resp.StatusCode, err.Error.Message), &err.Error
}
usage, respErr := adaptor.DoResponse(c, resp, meta)
usage, respErr, _ := adaptor.DoResponse(c, resp, meta)
if respErr != nil {
return fmt.Errorf("%s", respErr.Error.Message), &respErr.Error
}