gac 1.2.1__tar.gz → 1.2.2__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.1
3
+ Version: 1.2.2
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
@@ -139,8 +139,6 @@ ANTHROPIC_API_KEY=your_anthropic_key_here
139
139
  # Optional: configure OpenRouter
140
140
  # GAC_MODEL=openrouter:openrouter/auto
141
141
  # OPENROUTER_API_KEY=your_openrouter_key_here
142
- # OPENROUTER_SITE_URL=https://example.com
143
- # OPENROUTER_SITE_NAME=Example App
144
142
  ```
145
143
 
146
144
  Alternatively, you can configure `gac` using environment variables or by manually creating/editing the configuration file.
@@ -97,8 +97,6 @@ ANTHROPIC_API_KEY=your_anthropic_key_here
97
97
  # Optional: configure OpenRouter
98
98
  # GAC_MODEL=openrouter:openrouter/auto
99
99
  # OPENROUTER_API_KEY=your_openrouter_key_here
100
- # OPENROUTER_SITE_URL=https://example.com
101
- # OPENROUTER_SITE_NAME=Example App
102
100
  ```
103
101
 
104
102
  Alternatively, you can configure `gac` using environment variables or by manually creating/editing the configuration file.
@@ -1,3 +1,3 @@
1
1
  """Version information for gac package."""
2
2
 
3
- __version__ = "1.2.1"
3
+ __version__ = "1.2.2"
@@ -19,15 +19,6 @@ def call_openrouter_api(model: str, messages: list[dict], temperature: float, ma
19
19
  "Authorization": f"Bearer {api_key}",
20
20
  }
21
21
 
22
- # Add optional headers if environment variables are set
23
- site_url = os.getenv("OPENROUTER_SITE_URL")
24
- if site_url:
25
- headers["HTTP-Referer"] = site_url
26
-
27
- site_name = os.getenv("OPENROUTER_SITE_NAME")
28
- if site_name:
29
- headers["X-Title"] = site_name
30
-
31
22
  data = {
32
23
  "model": model,
33
24
  "messages": messages,
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