git-copilot-commit 0.2.0__tar.gz → 0.2.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: git-copilot-commit
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: Automatically generate and commit changes using copilot
5
5
  Author-email: Dheepak Krishnamurthy <1813121+kdheepak@users.noreply.github.com>
6
6
  License-File: LICENSE
@@ -117,6 +117,7 @@ def generate_commit_message(
117
117
  prompt = "\n".join(prompt_parts)
118
118
 
119
119
  try:
120
+ client.reset()
120
121
  response = client.ask(prompt, model=model) if model else client.ask(prompt)
121
122
  return response.content
122
123
  except CopilotAPIError:
@@ -136,6 +137,7 @@ def generate_commit_message(
136
137
 
137
138
  fallback_prompt = "\n".join(fallback_prompt_parts)
138
139
 
140
+ client.reset()
139
141
  response = (
140
142
  client.ask(fallback_prompt, model=model)
141
143
  if model