From e0f260e13ec12c8f461838f26f7539afb2f402c5 Mon Sep 17 00:00:00 2001 From: Tom X Nguyen Date: Fri, 30 Aug 2024 10:42:00 +0700 Subject: [PATCH] chore: actually no need to pass it here --- pkg/adapter/dify/dify.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkg/adapter/dify/dify.go b/pkg/adapter/dify/dify.go index fc13465..d5b67f6 100644 --- a/pkg/adapter/dify/dify.go +++ b/pkg/adapter/dify/dify.go @@ -54,9 +54,7 @@ type AgentMessage struct { func (d *Dify) SummarizeArticle(template, url string) (content string, err error) { // Define the URL and request body requestBody, err := json.Marshal(map[string]interface{}{ - "inputs": map[string]interface{}{ - "template": template, - }, + "inputs": map[string]interface{}{}, "query": fmt.Sprintf("%s %s", template, url), "response_mode": "streaming", "conversation_id": "",