You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: improve code readability and efficiency - replace deprecated methods with idiomatic alternatives in Git provider and update variable naming for clarity
.map_err(|e| format!("Failed to create schema: {}", e))?;
49
49
50
50
let system_prompt = "You are an expert programmer who writes git commit messages following the Conventional Commits specification (https://www.conventionalcommits.org/en/v1.0.0/).
@@ -97,7 +97,7 @@ Analyze the git diff carefully and generate an appropriate conventional commit m
97
97
98
98
let choice = response
99
99
.choices
100
-
.get(0)
100
+
.first()
101
101
.ok_or("No response choice from OpenAI".to_string())?;
0 commit comments