Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the issue where it does not decode the Error correctly when streaming response #92

Merged
merged 2 commits into from
Aug 22, 2023

Conversation

longseespace
Copy link
Contributor

@longseespace longseespace commented Jul 25, 2023

What

When using streaming, there might be an error occurring in the middle of the streaming.

This PR fixes it.

Previous PR: #87

Why

Related: #88

Affected Areas

StreamingSession.swift

@sonarcloud
Copy link

sonarcloud bot commented Aug 6, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@longseespace
Copy link
Contributor Author

Hey @Krivoblotsky, can you merge this?

@Krivoblotsky
Copy link
Collaborator

Yup, will add it to the release scope 👌

@longseespace
Copy link
Contributor Author

@Krivoblotsky Also do you think we should switch to a new implementation. I find the current one quite problematic.

For example, this issue: #97

Another issue I encountered is when working with OpenAI-compatible services, they might use SSE comments (started with :). It won't work with the current implementation.

@longseespace
Copy link
Contributor Author

Actually, can I add the fix to this PR and we can review + merge it instead of another PR? :D

@Krivoblotsky
Copy link
Collaborator

@longseespace let's do it with separate PR to reduce changes size plz 🙏

@Krivoblotsky Krivoblotsky merged commit 5959e6e into MacPaw:main Aug 22, 2023
5 checks passed
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.

None yet

3 participants