-
Notifications
You must be signed in to change notification settings - Fork 716
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
Better Error Handling & Interactive Mode Feature #23
base: main
Are you sure you want to change the base?
Conversation
moved openai key to a function call for easier calling
allows for accepting changes of individual suggestions
I've added better error handling and the ability to use interactive mode. when running the script, you can now use --interactive=True to turn on interactive mode and accept individual suggestions one by one. This increases the likelihood of properly fixing a script without gpt4. |
all commands are logged in a log file with nicely formatted context and datetime
Added Proper Logging
Fixed the conflicts |
print("\nChanges:") | ||
print_diff(original_file_lines, file_lines) | ||
except Exception as e: | ||
raise Exception(f"Failed to apply changes: {str(e)}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what exceptions were you encountering that caused you to add this? Maybe the response wasn't proper JSON (now fixed)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I was getting non-real JSON in the output responses, so it wasn't parsing if I recall correctly.
I like the idea for interactively selecting changes! Another PR has merged that lets users choose to accept entire changes or not. Let me think about how to best combine this. |
Circling back around to this, been awhile, let me check out the new changes and update you. |
moved openai key to a function call for easier calling