Skip to content

Commit

Permalink
feat: support dify agent
Browse files Browse the repository at this point in the history
  • Loading branch information
Calcium-Ion committed Jul 30, 2024
1 parent a6b6bcf commit fbce362
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion relay/channel/dify/relay-dify.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func streamResponseDify2OpenAI(difyResponse DifyChunkChatCompletionResponse) *dt
choice.Delta.SetContentString("Workflow: " + difyResponse.Data.WorkflowId + "\n")
} else if constant.DifyDebug && difyResponse.Event == "node_started" {
choice.Delta.SetContentString("Node: " + difyResponse.Data.NodeId + "\n")
} else if difyResponse.Event == "message" {
} else if difyResponse.Event == "message" || difyResponse.Event == "agent_message" {
choice.Delta.SetContentString(difyResponse.Answer)
}
response.Choices = append(response.Choices, choice)
Expand Down

0 comments on commit fbce362

Please sign in to comment.