diff --git a/autocommit/cli.py b/autocommit/cli.py index 65d96ed..0660398 100644 --- a/autocommit/cli.py +++ b/autocommit/cli.py @@ -142,9 +142,6 @@ def config_interactive(): console.print("\n[green]✅ 配置已更新[/green]") console.print(cli._create_config_table(updated_config.model_dump())) - # 询问是否测试连接 - if Confirm.ask("[cyan]是否测试LLM连接?[/cyan]"): - check(test=True) @app.command(help="检查LLM可用性") def check( diff --git a/autocommit/config.py b/autocommit/config.py index b50b329..f13f02b 100644 --- a/autocommit/config.py +++ b/autocommit/config.py @@ -83,7 +83,6 @@ class ConfigManager: return self.ensure_config_dir() - try: # 直接保存所有字段,不排除任何内容 config_dict = self._config.model_dump()