diff --git a/internal/core/dify_invocation/types.go b/internal/core/dify_invocation/types.go index f80f4a4..04c21ba 100644 --- a/internal/core/dify_invocation/types.go +++ b/internal/core/dify_invocation/types.go @@ -99,7 +99,6 @@ type InvokeStorageRequest struct { type InvokeAppRequest struct { BaseInvokeDifyRequest - requests.BaseRequestInvokeModel InvokeAppSchema } diff --git a/internal/server/controllers/remote_debugging.go b/internal/server/controllers/remote_debugging.go index 02bc69b..fa07f66 100644 --- a/internal/server/controllers/remote_debugging.go +++ b/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)) }, diff --git a/internal/utils/http_requests/http_warpper.go b/internal/utils/http_requests/http_warpper.go index 317add0..b7a7a84 100644 --- a/internal/utils/http_requests/http_warpper.go +++ b/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)