|
@@ -93,12 +93,10 @@ def generate_commit_message(diff, gemini_api_key):
|
|
|
|
|
|
genai.configure(api_key=gemini_api_key)
|
|
genai.configure(api_key=gemini_api_key)
|
|
# Use the intended model name
|
|
# Use the intended model name
|
|
- model = genai.GenerativeModel("gemini-1.5-flash")
|
|
|
|
-
|
|
|
|
- project_files_list = get_project_files()
|
|
|
|
|
|
+ model = genai.GenerativeModel("gemini-2.0-flash")
|
|
|
|
|
|
# Define prompt as a regular string, not f-string, placeholders will be filled by .format()
|
|
# Define prompt as a regular string, not f-string, placeholders will be filled by .format()
|
|
- prompt = f"""
|
|
|
|
|
|
+ prompt = """
|
|
You are an expert assistant that generates Git commit messages following conventional commit standards.
|
|
You are an expert assistant that generates Git commit messages following conventional commit standards.
|
|
Analyze the following diff of staged files and generate ONLY the commit message (subject and body) adhering to standard Git conventions.
|
|
Analyze the following diff of staged files and generate ONLY the commit message (subject and body) adhering to standard Git conventions.
|
|
|
|
|