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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sweep: Edit fails to parse some messages with invalid TOML #81

Closed

Conversation

ErikBjare
Copy link
Owner

Description

This pull request addresses an issue where the apply function in patch.py fails to correctly parse messages that contain invalid TOML due to unescaped backslashes. By adding an extra line of code, we ensure that all backslashes are properly escaped, thus preventing parsing errors and improving the robustness of the patch application process.

Summary

  • Fixed a bug in gptme/tools/patch.py where unescaped backslashes in the input could lead to invalid TOML parsing errors.
  • Added a line to apply function to replace single backslashes (\) with double backslashes (\\), ensuring proper escaping.
  • This change enhances the reliability of the patching tool when dealing with inputs that contain backslashes.

Fixes #71.


馃帀 Latest improvements to Sweep:
  • New dashboard launched for real-time tracking of Sweep issues, covering all stages from search to coding.
  • Integration of OpenAI's latest Assistant API for more efficient and reliable code planning and editing, improving speed by 3x.
  • Use the GitHub issues extension for creating Sweep issues directly from your editor.

馃挕 To get Sweep to edit this pull request, you can:

  • Comment below, and Sweep can edit the entire PR
  • Comment on a file, Sweep will only modify the commented file
  • Edit the original issue to get Sweep to recreate the PR from scratch

This is an automated message generated by Sweep AI.

@ErikBjare
Copy link
Owner Author

No way this is correct

@ErikBjare ErikBjare closed this Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Edit fails to parse some messages with invalid TOML
1 participant