-
Notifications
You must be signed in to change notification settings - Fork 236
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
Two Step Edits #530
Draft
biobootloader
wants to merge
17
commits into
main
Choose a base branch
from
two-step-edits
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Two Step Edits #530
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
421efeb
move stream_model_response from Conversation to new file
biobootloader 8806dc0
add two-step option to config, two step prompt
biobootloader 799911a
two step stream_and_parse, initial version
biobootloader febe979
extract edited file paths
biobootloader 31b9d89
improve prompt
biobootloader ed97498
prompt rewrite
biobootloader 76c1be0
add rewrite file prompt
biobootloader f34c992
update prompt: use full file path
biobootloader 4b02a0f
rewrite file
biobootloader a6febf7
print colored diff
biobootloader b42f9f0
add rewritten files to output
biobootloader e2407ce
changes applied!
biobootloader 9ad8598
ruff
biobootloader a90bdd6
fix tests
biobootloader adcb7e9
fix
biobootloader b816358
Merge branch 'main' into two-step-edits
biobootloader 33d22db
fix
biobootloader File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
rewrite file
- Loading branch information
commit 4b02a0f06d8c300872a5cace4b4bb9c05cfbd679
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
It's important to handle potential assertion failures gracefully in production code. Consider adding error handling for cases where the expected
rewrite_file_response
format does not match the assumptions (e.g., missing ``` markers). This could include logging a warning and skipping the file or providing a clear error message to the user.