enhanced-git 1.0.4__py3-none-any.whl → 1.0.5__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.
- {enhanced_git-1.0.4.dist-info → enhanced_git-1.0.5.dist-info}/METADATA +1 -1
- {enhanced_git-1.0.4.dist-info → enhanced_git-1.0.5.dist-info}/RECORD +6 -6
- gitai/config.py +12 -5
- {enhanced_git-1.0.4.dist-info → enhanced_git-1.0.5.dist-info}/WHEEL +0 -0
- {enhanced_git-1.0.4.dist-info → enhanced_git-1.0.5.dist-info}/entry_points.txt +0 -0
- {enhanced_git-1.0.4.dist-info → enhanced_git-1.0.5.dist-info}/licenses/LICENSE +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: enhanced-git
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.5
|
4
4
|
Summary: Generate Conventional Commit messages and changelog sections using AI
|
5
5
|
Project-URL: Homepage, https://github.com/mxzahid/git-ai
|
6
6
|
Project-URL: Repository, https://github.com/mxzahid/git-ai
|
@@ -2,7 +2,7 @@ gitai/__init__.py,sha256=X_3SlMT2EeGvZ9bdsXdjzwd1FFta8HHakgPv6yRq7kU,108
|
|
2
2
|
gitai/changelog.py,sha256=F2atDczLs-HgoafHOngKC6m2BhlfVYmknHyCIPjjFL4,8724
|
3
3
|
gitai/cli.py,sha256=l0i6UKqdeHB3TDAgaY8Gq1N-GFM4QrI2h72m9EWzY-I,4453
|
4
4
|
gitai/commit.py,sha256=vVfMcXDCOSc90ILMm8wMg0PjLiuUarzteyI2I_IT76c,12257
|
5
|
-
gitai/config.py,sha256=
|
5
|
+
gitai/config.py,sha256=F8DA5Hd20LMTV1l5gjAurukXJMUI_H_qnKofob0moqc,4223
|
6
6
|
gitai/constants.py,sha256=smipnjD7Y8h11Io1bpnimue-bz21opM74MHxczOq3rQ,3201
|
7
7
|
gitai/diff.py,sha256=Ae3aslHoeVrYDYo1UVnZe5x-z5poFUCM8K9bXRfVyug,5107
|
8
8
|
gitai/hook.py,sha256=U4KF1_uJZuw6AKtsyCcnntJcBOIsHNxZF149DYjgQDk,2527
|
@@ -11,8 +11,8 @@ gitai/providers/__init__.py,sha256=6IFc912-oepXeDGJyE4Ksm3KJLn6CGdYZb8HkUMfvlA,3
|
|
11
11
|
gitai/providers/base.py,sha256=a5b1ZulBnQvVmTlxeUQhixMyFWhwiZKMX1sIeQHHkms,1851
|
12
12
|
gitai/providers/ollama_provider.py,sha256=crRCfQZxJY1S4LaSFdiNT19u2T9WjbhpU8TCxbuo92w,2540
|
13
13
|
gitai/providers/openai_provider.py,sha256=i1lwyCtWoN5APt3UsB4MBS-jOLifDZcUCGj1Ko1CKcs,2444
|
14
|
-
enhanced_git-1.0.
|
15
|
-
enhanced_git-1.0.
|
16
|
-
enhanced_git-1.0.
|
17
|
-
enhanced_git-1.0.
|
18
|
-
enhanced_git-1.0.
|
14
|
+
enhanced_git-1.0.5.dist-info/METADATA,sha256=NX4qWPg2kjuWwXrYF-y2qbBG-0cSyq6F05yPELhPUuM,10056
|
15
|
+
enhanced_git-1.0.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
16
|
+
enhanced_git-1.0.5.dist-info/entry_points.txt,sha256=KzU5dZTYOoumsgMHpgn1XqwcALjUrcb1MCk7iyp9xTI,70
|
17
|
+
enhanced_git-1.0.5.dist-info/licenses/LICENSE,sha256=d11_Oc9IT-MUTvztUzbHPs_CSr9drf-6d1vnIvPiMJc,1075
|
18
|
+
enhanced_git-1.0.5.dist-info/RECORD,,
|
gitai/config.py
CHANGED
@@ -79,14 +79,19 @@ class Config:
|
|
79
79
|
|
80
80
|
llm_config = LLMConfig(
|
81
81
|
provider=configured_provider,
|
82
|
-
model=llm_data.get(
|
82
|
+
model=llm_data.get(
|
83
|
+
"model",
|
84
|
+
(
|
85
|
+
"gpt-4o-mini"
|
86
|
+
if configured_provider == "openai"
|
87
|
+
else "qwen2.5-coder:3b"
|
88
|
+
),
|
89
|
+
),
|
83
90
|
max_tokens=llm_data.get("max_tokens", 300),
|
84
91
|
temperature=llm_data.get("temperature", 0.0),
|
85
92
|
timeout_seconds=llm_data.get("timeout_seconds", 45),
|
86
93
|
api_key=(
|
87
|
-
os.getenv("OPENAI_API_KEY")
|
88
|
-
if configured_provider == "openai"
|
89
|
-
else None
|
94
|
+
os.getenv("OPENAI_API_KEY") if configured_provider == "openai" else None
|
90
95
|
),
|
91
96
|
base_url=(
|
92
97
|
os.getenv("OLLAMA_BASE_URL", "http://localhost:11434")
|
@@ -127,5 +132,7 @@ class Config:
|
|
127
132
|
return self.llm.api_key is not None
|
128
133
|
elif self.llm.provider == "ollama":
|
129
134
|
# for ollama we assume it's available if base_url is set or model is configured
|
130
|
-
return
|
135
|
+
return (
|
136
|
+
self.llm.base_url is not None or os.getenv("OLLAMA_MODEL") is not None
|
137
|
+
)
|
131
138
|
return False
|
File without changes
|
File without changes
|
File without changes
|