Sfoglia il codice sorgente

fix: channel test

(cherry picked from commit 052bdab1c45b3a4ba5f079afc763f54e751b1cd7)
1808837298@qq.com 1 anno fa
parent
commit
f08f7ae940
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      controller/channel-test.go

+ 1 - 1
controller/channel-test.go

@@ -117,7 +117,7 @@ func testChannel(channel *model.Channel, testModel string) (err error, openAIErr
 	if usageA == nil {
 		return errors.New("usage is nil"), nil
 	}
-	usage := usageA.(dto.Usage)
+	usage := usageA.(*dto.Usage)
 	result := w.Result()
 	respBody, err := io.ReadAll(result.Body)
 	if err != nil {