Add AI query skill + adding support for changing default fallback skill#370
Open
tylxr59 wants to merge 7 commits intoStypox:masterfrom
Open
Add AI query skill + adding support for changing default fallback skill#370tylxr59 wants to merge 7 commits intoStypox:masterfrom
tylxr59 wants to merge 7 commits intoStypox:masterfrom
Conversation
…tting AI query as the fallback skill, general clean up, etc
…ed with it early and wanted to finish it.
…al and slapping my addition on the end TT
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
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.
This is kind of a big addition, hopefully it's up to snuff.
Added in the AI query skill - It defaults to OpenAI's endpoint and gpt-4o-mini but is compatible with any provider that uses an OpenAI-style API. It does require that the end user have an funded/paid account with an API provider to function. I'm happy to provide maintainers a short-term key for testing.
I also added in a new Settings menu entry to allow users to select a default fallback skill when the input is not recognized as a command. By default, it still does the "I couldn't understand you, please try again" behavior but can be changed to the AI query.
I do find that the translate skill does clash with the AI query skill - sometimes queries meant for the AI get picked up by the translation skill. I, personally, just disabled the translation skill and have found using ChatGPT's translations to be alright.
I haven't changed the README but I would be more than happy to supply a How-To section for setting it up and acquiring API keys.
Resolves #366 (partially), #132