From 7ab346c3dbd1d047ab0b454452a34af26312c28a Mon Sep 17 00:00:00 2001 From: songsenand Date: Sun, 25 Jan 2026 01:49:16 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E9=85=8D=E7=BD=AE=E4=BA=A4?= =?UTF-8?q?=E4=BA=92=E5=BC=8F=E6=B5=8B=E8=AF=95LLM=E8=BF=9E=E6=8E=A5?= =?UTF-8?q?=E7=9A=84=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- autocommit/cli.py | 3 --- autocommit/config.py | 1 - 2 files changed, 4 deletions(-) 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()