gac 1.2.1__py3-none-any.whl → 1.2.3__py3-none-any.whl
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.
- gac/__version__.py +1 -1
- gac/providers/openai.py +1 -1
- gac/providers/openrouter.py +0 -9
- {gac-1.2.1.dist-info → gac-1.2.3.dist-info}/METADATA +1 -3
- {gac-1.2.1.dist-info → gac-1.2.3.dist-info}/RECORD +8 -8
- {gac-1.2.1.dist-info → gac-1.2.3.dist-info}/WHEEL +0 -0
- {gac-1.2.1.dist-info → gac-1.2.3.dist-info}/entry_points.txt +0 -0
- {gac-1.2.1.dist-info → gac-1.2.3.dist-info}/licenses/LICENSE +0 -0
gac/__version__.py
CHANGED
gac/providers/openai.py
CHANGED
|
@@ -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, "
|
|
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)
|
gac/providers/openrouter.py
CHANGED
|
@@ -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,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: gac
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.3
|
|
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.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
gac/__init__.py,sha256=HFWgSVNbTAFhgetCRWI1WrtyE7zC7IHvoBOrfDGUurM,989
|
|
2
|
-
gac/__version__.py,sha256=
|
|
2
|
+
gac/__version__.py,sha256=5OnFvP_zjZSjggGAYslNhWmy5e0JkCUb8PDa8Jwwt5o,66
|
|
3
3
|
gac/ai.py,sha256=iW7DqVoWGaHJeUWhkcYgFxJZHEkvNMcKgnEFQiBT_Dg,3090
|
|
4
4
|
gac/ai_utils.py,sha256=4qr1Jpm89ND5avqWQoQIjyc-zS-CPLoODjlhI44l8M8,7079
|
|
5
5
|
gac/cli.py,sha256=eQS8S7v6p0CfN9wtr239ujYGTi9rKl-KV7STX2U-C3w,4581
|
|
@@ -19,10 +19,10 @@ gac/providers/anthropic.py,sha256=esf6pq6nRdqD0mpKz_IQNXmXe5WnkoSA2b1isrrRB4o,15
|
|
|
19
19
|
gac/providers/cerebras.py,sha256=eE9lAjEzrATIo941vv97I2DSmpnXYBCJ9HkVIb-6Whg,1130
|
|
20
20
|
gac/providers/groq.py,sha256=Z-j-RKrRGV7evSWxTyKKnPff1Mn5YmYZxitqWVlwadE,2452
|
|
21
21
|
gac/providers/ollama.py,sha256=Bp94DvortQssDhekuNdJ7fKLeWpWASYXSssJNCuGszg,1383
|
|
22
|
-
gac/providers/openai.py,sha256=
|
|
23
|
-
gac/providers/openrouter.py,sha256=
|
|
24
|
-
gac-1.2.
|
|
25
|
-
gac-1.2.
|
|
26
|
-
gac-1.2.
|
|
27
|
-
gac-1.2.
|
|
28
|
-
gac-1.2.
|
|
22
|
+
gac/providers/openai.py,sha256=RohHaQqttx0BTVzoJrmEA4eajxnFLN7zyfcFBE0aRyQ,1120
|
|
23
|
+
gac/providers/openrouter.py,sha256=x9jGhvHHbApCT859bSAUZrkpgQKfQTHUIFSlWYPvlfE,1196
|
|
24
|
+
gac-1.2.3.dist-info/METADATA,sha256=KHJdDU1zjtcp8n9-i-CQCaGU-jaMHAzjfPxc1pro9NY,8481
|
|
25
|
+
gac-1.2.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
26
|
+
gac-1.2.3.dist-info/entry_points.txt,sha256=tdjN-XMmcWfL92swuRAjT62bFLOAwk9bTMRLGP5Z4aI,36
|
|
27
|
+
gac-1.2.3.dist-info/licenses/LICENSE,sha256=vOab37NouL1PNs5BswnPayrMCqaN2sqLfMQfqPDrpZg,1103
|
|
28
|
+
gac-1.2.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|