Yeuoly 11 달 전
부모
커밋
7322d50a5d
3개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  1. 0 1
      internal/core/dify_invocation/types.go
  2. 1 1
      internal/server/controllers/remote_debugging.go
  3. 1 2
      internal/utils/http_requests/http_warpper.go

+ 0 - 1
internal/core/dify_invocation/types.go

@@ -99,7 +99,6 @@ type InvokeStorageRequest struct {
 
 type InvokeAppRequest struct {
 	BaseInvokeDifyRequest
-	requests.BaseRequestInvokeModel
 
 	InvokeAppSchema
 }

+ 1 - 1
internal/server/controllers/remote_debugging.go

@@ -7,7 +7,7 @@ import (
 )
 
 func GetRemoteDebuggingKey(c *gin.Context) {
-	BindRequest[requests.RequestGetRemoteDebuggingKey](
+	BindRequest(
 		c, func(request requests.RequestGetRemoteDebuggingKey) {
 			c.JSON(200, service.GetRemoteDebuggingKey(request.TenantID))
 		},

+ 1 - 2
internal/utils/http_requests/http_warpper.go

@@ -114,8 +114,7 @@ func RequestAndParseStream[T any](client *http.Client, url string, method string
 			// unmarshal
 			t, err := parser.UnmarshalJsonBytes[T](data)
 			if err != nil {
-				ch.WriteError(err)
-				break
+				continue
 			}
 
 			ch.Write(t)