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: improve stream parsing and error handling #671

Merged
merged 1 commit into from
Dec 4, 2024

Conversation

deathbeam
Copy link
Collaborator

Enhance the stream parsing logic by better handling finish_reason and error conditions. Changes include:

  • Add finish_reason check to properly close streams
  • Improve data prefix trimming in stream messages
  • Pass job context to parse_line for better error handling
  • Add debug logging for stream completion

Enhance the stream parsing logic by better handling finish_reason and error
conditions. Changes include:
- Add finish_reason check to properly close streams
- Improve data prefix trimming in stream messages
- Pass job context to parse_line for better error handling
- Add debug logging for stream completion
@deathbeam deathbeam added bug Something isn't working enhancement New feature or request labels Dec 4, 2024
@deathbeam deathbeam merged commit 51dd370 into CopilotC-Nvim:main Dec 4, 2024
2 checks passed
@deathbeam deathbeam deleted the use-finish-reason-as-well branch December 4, 2024 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant