fix(git/commit.rs): 错误修复

This commit is contained in:
2026-02-01 14:01:12 +00:00
parent 33aaa020c4
commit fa92d90ff4
2 changed files with 9 additions and 1 deletions

View File

@@ -124,6 +124,10 @@ impl LlmClient {
language: Language,
) -> Result<GeneratedCommit> {
let system_prompt = get_commit_system_prompt(format, language);
// Debug: print system prompt info
eprintln!("DEBUG: System prompt language: {:?}", language);
eprintln!("DEBUG: System prompt (first 200 chars): {}...", &system_prompt.chars().take(200).collect::<String>());
let prompt = format!("{}", diff);
let response = self.provider.generate_with_system(system_prompt, &prompt).await?;