This commit is contained in:
Kevin Zhao
2024-10-30 22:08:42 +08:00
parent b3f4e94d65
commit 6bbbc3353f
2 changed files with 4 additions and 9 deletions
-2
View File
@@ -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)
+4 -7
View File
@@ -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",