-
Notifications
You must be signed in to change notification settings - Fork 1
Ai assist #4
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
Open
mitchcapper
wants to merge
11
commits into
Viorel:main
Choose a base branch
from
mitchcapper:ai_assist
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.
Open
Ai assist #4
Conversation
This file contains hidden or 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
mostly for speed with new --only-engine-dll command line
fe03dec to
9f82aa6
Compare
Author
de8eb02 to
eeca631
Compare
eeca631 to
03df1eb
Compare
Author
|
OK I moved most of this code now to an external repo. I know this project prefers to use standard event handlers / avoiding MVVM but I started to run into some issues staying that course, and the code base was growing. This creates a cleaner separation of the AI code base from the rest. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

Ok so this was my primary goal in seeking a regex project, to add an AI assist option. I generally find AI can be quite good at generating regex patterns but this should make it more automated by reducing the instructions a user must give.
This is a first attempt there is plenty of work to do (only one commit is different from the other PR but it is based on the other code base here is the ai specific changes: mitchcapper/RegExpress@improvements...ai_assist ).
This works with github copilot and in theory most other openAI endpoints but I have done limited testing there.
I am sure there are shortcuts I took here as well that should be resolved in terms of some of the data access. It stores several more things in the session state for the AI.
Overall used it for a few test projects and it has done well at quickly generating relevant regexes.
It also is missing some of the github copilot models (mostly addl alpha ones) and costing doesn't work yet. I am still working on those.
Again, understand if you don't want to add something big like this to the project as its too far off tangent, but I think it could be useful.