gac 1.2.2__tar.gz → 1.2.4__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.

Potentially problematic release.


This version of gac might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gac
3
- Version: 1.2.2
3
+ Version: 1.2.4
4
4
  Summary: AI-powered Git commit message generator with multi-provider support
5
5
  Project-URL: Homepage, https://github.com/cellwebb/gac
6
6
  Project-URL: Documentation, https://github.com/cellwebb/gac#readme
@@ -193,6 +193,12 @@ indent-style = "space"
193
193
  skip-magic-trailing-comma = false
194
194
  line-ending = "auto"
195
195
 
196
+ [tool.pytest.ini_options]
197
+ markers = [
198
+ "providers: marks tests that make real API calls to AI providers (deselect with '-m \"not providers\"')",
199
+ ]
200
+ addopts = "-m 'not providers'"
201
+
196
202
  [template.plugins.default]
197
203
  tests = true
198
204
  src-layout = true
@@ -1,3 +1,3 @@
1
1
  """Version information for gac package."""
2
2
 
3
- __version__ = "1.2.2"
3
+ __version__ = "1.2.4"
@@ -16,7 +16,7 @@ def call_openai_api(model: str, messages: list[dict], temperature: float, max_to
16
16
  url = "https://api.openai.com/v1/chat/completions"
17
17
  headers = {"Authorization": f"Bearer {api_key}", "Content-Type": "application/json"}
18
18
 
19
- data = {"model": model, "messages": messages, "temperature": temperature, "max_tokens": max_tokens}
19
+ data = {"model": model, "messages": messages, "temperature": temperature, "max_completion_tokens": max_tokens}
20
20
 
21
21
  try:
22
22
  response = httpx.post(url, headers=headers, json=data, timeout=120)
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes