Skip to content

Feat better summary#4

Merged
alingse merged 4 commits into
mainfrom
feat-better-summary
Jul 14, 2025
Merged

Feat better summary#4
alingse merged 4 commits into
mainfrom
feat-better-summary

Conversation

@alingse

@alingse alingse commented Jul 14, 2025

Copy link
Copy Markdown
Owner

see #1

alingse added 4 commits July 14, 2025 13:31
对 `--init` 命令进行重大重构,以提供更安全、更清晰的用户体验。

主要变更:
- **安全的更新机制**:当配置文件存在时,`--init` 现在会明确请求用户确认,然后再继续。它会更新现有的默认摘要器(gemini-pro, ollama, sgpt),同时完全保留用户手动添加的任何其他自定义配置。
- **逐个工具确认**:程序现在会为每个发现的工具(Gemini, Ollama, ShellGPT)单独请求用户的许可,才会进行添加或更新,给予用户完全的控制权。
- **简化的Ollama配置**:为Ollama使用一个固定的摘要器名称 `ollama`,以避免因模型名称不同而导致重复的配置条目。
- **可预测的默认设置**:如果配置文件中没有设置默认摘要器,程序现在会按照 `gemini-pro` > `ollama` > `sgpt` 的优先级自动选择一个作为默认。

这些更改解决了先前版本中可能存在的意外覆盖用户配置的风险,并使更新过程更加透明和可控。
@alingse alingse merged commit 06c2629 into main Jul 14, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant