mirror of
https://github.com/langgenius/dify-sdk-go.git
synced 2026-06-30 20:37:54 -04:00
update
This commit is contained in:
@@ -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
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user