diff --git a/api_workflow.go b/api_workflow.go index d66700e..bcc3b1a 100644 --- a/api_workflow.go +++ b/api_workflow.go @@ -119,8 +119,6 @@ func (api *API) RunWorkflow(ctx context.Context, request WorkflowRequest) (*Work return nil, fmt.Errorf("failed to create base request: %w", err) } - fmt.Print(req) - resp, err := api.c.sendRequest(req) if err != nil { return nil, fmt.Errorf("failed to send request: %w", err) diff --git a/test/api_test.go b/test/api_test.go index 12cdf60..25d9005 100644 --- a/test/api_test.go +++ b/test/api_test.go @@ -215,13 +215,10 @@ func TestRunWorkflowStreaming(t *testing.T) { workflowReq := dify.WorkflowRequest{ Inputs: map[string]interface{}{ - "query": "描述这张图片", - }, - Files: []dify.FileInput{ - { - Type: "image", - TransferMethod: "remote_url", - URL: "https://assets.cnzlerp.com/test/aoolia/1-1.jpg", + "image_url_new": map[string]string{ + "type": "image", + "transfer_method": "remote_url", + "url": "https://localhost/1-1.jpg", }, }, ResponseMode: "streaming",