Skip to content

Commit

Permalink
chore: actually no need to pass it here
Browse files Browse the repository at this point in the history
  • Loading branch information
monotykamary committed Aug 30, 2024
1 parent 085e273 commit e0f260e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/adapter/dify/dify.go
Original file line number Diff line number Diff line change
Expand Up @@ -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": "",
Expand Down

0 comments on commit e0f260e

Please sign in to comment.