Skip to content

Conversation

@evandrocoan
Copy link
Member

https://dify.ai/ server stream mode, uses SSE, but it does not provide the event field, just the data one, which breaks this parse. Then, adding support to handle either data without event or otherwise.

evandrocoan and others added 2 commits January 14, 2025 16:57
for example
		n, err := reader.Read(buffer)
		if err != nil {
			if err == io.EOF {
				messages := parser.Add("")
				messages = append(messages, parser.Finish()...)

(cherry picked from commit 4fba00b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants