Feat better summary#4
Merged
Merged
Conversation
对 `--init` 命令进行重大重构,以提供更安全、更清晰的用户体验。 主要变更: - **安全的更新机制**:当配置文件存在时,`--init` 现在会明确请求用户确认,然后再继续。它会更新现有的默认摘要器(gemini-pro, ollama, sgpt),同时完全保留用户手动添加的任何其他自定义配置。 - **逐个工具确认**:程序现在会为每个发现的工具(Gemini, Ollama, ShellGPT)单独请求用户的许可,才会进行添加或更新,给予用户完全的控制权。 - **简化的Ollama配置**:为Ollama使用一个固定的摘要器名称 `ollama`,以避免因模型名称不同而导致重复的配置条目。 - **可预测的默认设置**:如果配置文件中没有设置默认摘要器,程序现在会按照 `gemini-pro` > `ollama` > `sgpt` 的优先级自动选择一个作为默认。 这些更改解决了先前版本中可能存在的意外覆盖用户配置的风险,并使更新过程更加透明和可控。
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.
see #1