소스 검색

fix: channel test

(cherry picked from commit 052bdab1c45b3a4ba5f079afc763f54e751b1cd7)
1808837298@qq.com 1 년 전
부모
커밋
f08f7ae940
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 {