added adapted scripts. added supports for both gpt and open-weights models. added supported for web search and better markdown rendering.#4
Open
jaaack-wang wants to merge 21 commits into1rgs:masterfrom
Conversation
Now each tool has danger level, it is one of: - safe: nor writes, nor reads user data - sensitive: reads user data - dangerous: writes user data New options `--safe_tools` allow to specify which tools are considered to be safe and can run without any confirmation. Any other tool call will require confirmation from user (yes/no prompt). Also improved tool call preview printing with formatter for all arguments and custom formatters for "write" and "edit" tools (they now print full context of what will be changed)
NOTE: Only basic testing eas done, because I does not have access to that AI
NOTE: Only basic testing was done because I does not have access to this AI's API
NOTE: Not really tested because my laptop can't really handle local AI
Added `SENSITIVE_COMMANDS` array and check if command is one of them. If so, call's danger is demoted to "sensitive"
Added tool safety feature and oauth2 log in for gemini
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.
added adapted scripts. added supports for both gpt and open-weights models. added supported for web search and better markdown rendering.