llama-github 0.2.0__tar.gz → 0.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.
- {llama_github-0.2.0 → llama_github-0.2.2}/CHANGELOG.md +11 -1
- {llama_github-0.2.0/llama_github.egg-info → llama_github-0.2.2}/PKG-INFO +11 -1
- {llama_github-0.2.0 → llama_github-0.2.2}/llama_github/data_retrieval/github_entities.py +83 -9
- {llama_github-0.2.0 → llama_github-0.2.2}/llama_github/llm_integration/initial_load.py +3 -3
- llama_github-0.2.2/llama_github/version.py +1 -0
- {llama_github-0.2.0 → llama_github-0.2.2/llama_github.egg-info}/PKG-INFO +11 -1
- {llama_github-0.2.0 → llama_github-0.2.2}/setup.cfg +1 -1
- llama_github-0.2.0/llama_github/version.py +0 -1
- {llama_github-0.2.0 → llama_github-0.2.2}/LICENSE +0 -0
- {llama_github-0.2.0 → llama_github-0.2.2}/MANIFEST.in +0 -0
- {llama_github-0.2.0 → llama_github-0.2.2}/README.md +0 -0
- {llama_github-0.2.0 → llama_github-0.2.2}/llama_github/__init__.py +0 -0
- {llama_github-0.2.0 → llama_github-0.2.2}/llama_github/config/__init__.py +0 -0
- {llama_github-0.2.0 → llama_github-0.2.2}/llama_github/config/config.json +0 -0
- {llama_github-0.2.0 → llama_github-0.2.2}/llama_github/config/config.py +0 -0
- {llama_github-0.2.0 → llama_github-0.2.2}/llama_github/data_retrieval/__init__.py +0 -0
- {llama_github-0.2.0 → llama_github-0.2.2}/llama_github/data_retrieval/github_api.py +0 -0
- {llama_github-0.2.0 → llama_github-0.2.2}/llama_github/features/__init__.py +0 -0
- {llama_github-0.2.0 → llama_github-0.2.2}/llama_github/features/feature_flags.py +0 -0
- {llama_github-0.2.0 → llama_github-0.2.2}/llama_github/features/insider_features.py +0 -0
- {llama_github-0.2.0 → llama_github-0.2.2}/llama_github/github_integration/__init__.py +0 -0
- {llama_github-0.2.0 → llama_github-0.2.2}/llama_github/github_integration/github_auth_manager.py +0 -0
- {llama_github-0.2.0 → llama_github-0.2.2}/llama_github/github_rag.py +0 -0
- {llama_github-0.2.0 → llama_github-0.2.2}/llama_github/llm_integration/__init__.py +0 -0
- {llama_github-0.2.0 → llama_github-0.2.2}/llama_github/llm_integration/llm_handler.py +0 -0
- {llama_github-0.2.0 → llama_github-0.2.2}/llama_github/logger.py +0 -0
- {llama_github-0.2.0 → llama_github-0.2.2}/llama_github/rag_processing/__init__.py +0 -0
- {llama_github-0.2.0 → llama_github-0.2.2}/llama_github/rag_processing/rag_processor.py +0 -0
- {llama_github-0.2.0 → llama_github-0.2.2}/llama_github/utils.py +0 -0
- {llama_github-0.2.0 → llama_github-0.2.2}/llama_github.egg-info/SOURCES.txt +0 -0
- {llama_github-0.2.0 → llama_github-0.2.2}/llama_github.egg-info/dependency_links.txt +0 -0
- {llama_github-0.2.0 → llama_github-0.2.2}/llama_github.egg-info/requires.txt +0 -0
- {llama_github-0.2.0 → llama_github-0.2.2}/llama_github.egg-info/top_level.txt +0 -0
- {llama_github-0.2.0 → llama_github-0.2.2}/setup.py +0 -0
- {llama_github-0.2.0 → llama_github-0.2.2}/tests/test_data_retrieval.py +0 -0
- {llama_github-0.2.0 → llama_github-0.2.2}/tests/test_github_auth_manager.py +0 -0
- {llama_github-0.2.0 → llama_github-0.2.2}/tests/test_initial_load.py +0 -0
- {llama_github-0.2.0 → llama_github-0.2.2}/tests/test_llm_handler.py +0 -0
- {llama_github-0.2.0 → llama_github-0.2.2}/tests/test_logger.py +0 -0
- {llama_github-0.2.0 → llama_github-0.2.2}/tests/test_rag_processor.py +0 -0
|
@@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.2.2] - 2024-11-19
|
|
9
|
+
|
|
10
|
+
### Optimized
|
|
11
|
+
- more precise model specification (stick to mistral-large-2407 and mistral-nemo-latest)
|
|
12
|
+
|
|
13
|
+
## [0.2.1] - 2024-11-16
|
|
14
|
+
|
|
15
|
+
### Optimized
|
|
16
|
+
- approperately handle more file types when calculate file changes in PR
|
|
17
|
+
|
|
8
18
|
## [0.2.0] - 2024-11-16
|
|
9
19
|
|
|
10
20
|
### Optimized
|
|
@@ -113,4 +123,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
113
123
|
[0.1.3]: https://github.com/JetXu-LLM/llama-github/compare/v0.1.2...v0.1.3
|
|
114
124
|
[0.1.2]: https://github.com/JetXu-LLM/llama-github/compare/v0.1.1...v0.1.2
|
|
115
125
|
[0.1.1]: https://github.com/JetXu-LLM/llama-github/compare/v0.1.0...v0.1.1
|
|
116
|
-
[0.1.0]: https://github.com/JetXu-LLM/llama-github/releases/tag/v0.1.0
|
|
126
|
+
[0.1.0]: https://github.com/JetXu-LLM/llama-github/releases/tag/v0.1.0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: llama-github
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
4
4
|
Summary: Llama-github is an open-source Python library that empowers LLM Chatbots, AI Agents, and Auto-dev Agents to conduct Retrieval from actively selected GitHub public projects. It Augments through LLMs and Generates context for any coding question, in order to streamline the development of sophisticated AI-driven applications.
|
|
5
5
|
Home-page: https://github.com/JetXu-LLM/llama-github
|
|
6
6
|
Author: Jet Xu
|
|
@@ -156,6 +156,16 @@ All notable changes to this project will be documented in this file.
|
|
|
156
156
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
157
157
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
158
158
|
|
|
159
|
+
## [0.2.2] - 2024-11-19
|
|
160
|
+
|
|
161
|
+
### Optimized
|
|
162
|
+
- more precise model specification (stick to mistral-large-2407 and mistral-nemo-latest)
|
|
163
|
+
|
|
164
|
+
## [0.2.1] - 2024-11-16
|
|
165
|
+
|
|
166
|
+
### Optimized
|
|
167
|
+
- approperately handle more file types when calculate file changes in PR
|
|
168
|
+
|
|
159
169
|
## [0.2.0] - 2024-11-16
|
|
160
170
|
|
|
161
171
|
### Optimized
|
|
@@ -159,14 +159,88 @@ class Repository:
|
|
|
159
159
|
"""
|
|
160
160
|
file_key = f"{file_path}/{sha}" if sha is not None else file_path
|
|
161
161
|
|
|
162
|
-
# Skip
|
|
162
|
+
# Skip files that don't need processing
|
|
163
163
|
if any(file_path.endswith(ext) for ext in [
|
|
164
|
-
|
|
165
|
-
'.
|
|
166
|
-
'.
|
|
167
|
-
'.
|
|
168
|
-
|
|
169
|
-
|
|
164
|
+
# Package manager and dependencies
|
|
165
|
+
'.lock', '.pnpm-lock.yaml', 'package-lock.json', 'Gemfile.lock',
|
|
166
|
+
'poetry.lock', 'Cargo.lock', 'composer.lock',
|
|
167
|
+
'.pyc', '.pyo', 'requirements.txt', '.gitignore',
|
|
168
|
+
|
|
169
|
+
# Binaries and compiled files
|
|
170
|
+
'.exe', '.dll', '.so', '.dylib', '.bin', '.obj', '.o', '.a',
|
|
171
|
+
'.lib', '.jar', '.war', '.ear', '.class', '.pdb', '.ilk', '.exp',
|
|
172
|
+
'.apk', '.aab', '.ipa', # Mobile apps
|
|
173
|
+
'.wasm', # WebAssembly
|
|
174
|
+
|
|
175
|
+
# Media and compressed files
|
|
176
|
+
'.png', '.jpg', '.jpeg', '.gif', '.ico', '.bmp', '.tiff', '.webp',
|
|
177
|
+
'.svg', '.eps', '.psd', '.ai', '.sketch',
|
|
178
|
+
'.mp3', '.mp4', '.wav', '.flac', '.ogg', '.m4a',
|
|
179
|
+
'.avi', '.mov', '.mkv', '.webm', '.wmv', '.flv',
|
|
180
|
+
'.pdf', '.doc', '.docx', '.xls', '.xlsx', '.ppt', '.pptx',
|
|
181
|
+
'.zip', '.rar', '.7z', '.tar', '.gz', '.bz2', '.xz', '.tgz',
|
|
182
|
+
|
|
183
|
+
# System and hidden files
|
|
184
|
+
'.DS_Store', 'Thumbs.db', '.dockerignore',
|
|
185
|
+
'.gitattributes', '.gitmodules',
|
|
186
|
+
|
|
187
|
+
# Documentation and resource files
|
|
188
|
+
'.min.js', '.min.css', '.map', '.po', '.mo', '.pot',
|
|
189
|
+
'.ttf', '.otf', '.eot', '.woff', '.woff2', # Fonts
|
|
190
|
+
|
|
191
|
+
# Configuration and data files
|
|
192
|
+
'.conf', '.config', '.cfg', '.ini',
|
|
193
|
+
'.sqlite', '.db', '.mdb', '.sql',
|
|
194
|
+
'.pb', '.pbtxt', # Protocol buffers
|
|
195
|
+
'.ipynb', # Jupyter notebooks
|
|
196
|
+
'.pkl', '.pickle', # Python serialized objects
|
|
197
|
+
'.tfrecords', '.tf', # TensorFlow files
|
|
198
|
+
'.onnx', # ONNX models
|
|
199
|
+
'.h5', '.hdf5', # HDF5 files
|
|
200
|
+
'.npy', '.npz', # NumPy files
|
|
201
|
+
|
|
202
|
+
# Build outputs
|
|
203
|
+
'.min.js', '.min.css',
|
|
204
|
+
'.bundle.js', '.bundle.css',
|
|
205
|
+
'.chunk.js', '.chunk.css'
|
|
206
|
+
|
|
207
|
+
]) or any(pattern in file_path for pattern in [
|
|
208
|
+
# Special directories
|
|
209
|
+
'/node_modules/',
|
|
210
|
+
'/__pycache__/',
|
|
211
|
+
'/.git/',
|
|
212
|
+
'/.idea/',
|
|
213
|
+
'/.vscode/',
|
|
214
|
+
'/.vs/',
|
|
215
|
+
'/.svn/',
|
|
216
|
+
'/.hg/',
|
|
217
|
+
'/dist/',
|
|
218
|
+
'/build/',
|
|
219
|
+
'/target/',
|
|
220
|
+
'/out/',
|
|
221
|
+
'/bin/',
|
|
222
|
+
'/obj/',
|
|
223
|
+
'/Debug/',
|
|
224
|
+
'/Release/',
|
|
225
|
+
'/.next/',
|
|
226
|
+
'/.nuxt/',
|
|
227
|
+
'/vendor/',
|
|
228
|
+
'/venv/',
|
|
229
|
+
'/.env',
|
|
230
|
+
'/coverage/',
|
|
231
|
+
'/logs/',
|
|
232
|
+
'/.github/',
|
|
233
|
+
'/assets/',
|
|
234
|
+
'/public/assets/',
|
|
235
|
+
'/static/assets/',
|
|
236
|
+
'/.pytest_cache/',
|
|
237
|
+
'/.sass-cache/',
|
|
238
|
+
'/.parcel-cache/',
|
|
239
|
+
'/.cache/',
|
|
240
|
+
'/tmp/',
|
|
241
|
+
'/temp/'
|
|
242
|
+
]):
|
|
243
|
+
logger.debug(f"Skipping non-processable file: {file_path}")
|
|
170
244
|
return None
|
|
171
245
|
|
|
172
246
|
if file_key not in self._file_contents: # Check if file content has already been fetched
|
|
@@ -557,7 +631,7 @@ class Repository:
|
|
|
557
631
|
|
|
558
632
|
# Generate custom diff with specified context lines
|
|
559
633
|
if base_content is None and head_content is None:
|
|
560
|
-
custom_diff = ''
|
|
634
|
+
custom_diff = '[SKIPPED] File type not suitable for diff analysis'
|
|
561
635
|
else:
|
|
562
636
|
custom_diff = DiffGenerator.generate_custom_diff(base_content, head_content, context_lines)
|
|
563
637
|
if not custom_diff or custom_diff.strip() == '':
|
|
@@ -721,4 +795,4 @@ class RepositoryPool:
|
|
|
721
795
|
repo = Repository(full_name, self.github_instance, **kwargs)
|
|
722
796
|
self._pool[full_name] = repo
|
|
723
797
|
|
|
724
|
-
return self._pool[full_name]
|
|
798
|
+
return self._pool[full_name]
|
|
@@ -68,8 +68,8 @@ class LLMManager:
|
|
|
68
68
|
self.model_type = "Custom_langchain_llm"
|
|
69
69
|
elif mistral_api_key is not None and mistral_api_key != "" and self.llm is None:
|
|
70
70
|
logger.info("Initializing Mistral API...")
|
|
71
|
-
self.llm = ChatMistralAI(mistral_api_key=mistral_api_key, model="mistral-large-
|
|
72
|
-
self.llm_simple = ChatMistralAI(mistral_api_key=mistral_api_key, model="open-
|
|
71
|
+
self.llm = ChatMistralAI(mistral_api_key=mistral_api_key, model="mistral-large-2407")
|
|
72
|
+
self.llm_simple = ChatMistralAI(mistral_api_key=mistral_api_key, model="open-mistral-nemo")
|
|
73
73
|
self.model_type = "OpenAI"
|
|
74
74
|
elif openai_api_key is not None and openai_api_key != "" and self.llm is None:
|
|
75
75
|
logger.info("Initializing OpenAI API...")
|
|
@@ -172,4 +172,4 @@ class LLMManager:
|
|
|
172
172
|
Returns:
|
|
173
173
|
The initialized embedding model.
|
|
174
174
|
"""
|
|
175
|
-
return self.embedding_model
|
|
175
|
+
return self.embedding_model
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '0.2.2'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: llama-github
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
4
4
|
Summary: Llama-github is an open-source Python library that empowers LLM Chatbots, AI Agents, and Auto-dev Agents to conduct Retrieval from actively selected GitHub public projects. It Augments through LLMs and Generates context for any coding question, in order to streamline the development of sophisticated AI-driven applications.
|
|
5
5
|
Home-page: https://github.com/JetXu-LLM/llama-github
|
|
6
6
|
Author: Jet Xu
|
|
@@ -156,6 +156,16 @@ All notable changes to this project will be documented in this file.
|
|
|
156
156
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
157
157
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
158
158
|
|
|
159
|
+
## [0.2.2] - 2024-11-19
|
|
160
|
+
|
|
161
|
+
### Optimized
|
|
162
|
+
- more precise model specification (stick to mistral-large-2407 and mistral-nemo-latest)
|
|
163
|
+
|
|
164
|
+
## [0.2.1] - 2024-11-16
|
|
165
|
+
|
|
166
|
+
### Optimized
|
|
167
|
+
- approperately handle more file types when calculate file changes in PR
|
|
168
|
+
|
|
159
169
|
## [0.2.0] - 2024-11-16
|
|
160
170
|
|
|
161
171
|
### Optimized
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[metadata]
|
|
2
2
|
name = llama-github
|
|
3
|
-
version = 0.2.
|
|
3
|
+
version = 0.2.2
|
|
4
4
|
author = Jet Xu
|
|
5
5
|
author_email = Voldemort.xu@foxmail.com
|
|
6
6
|
description = Llama-github is an open-source Python library that empowers LLM Chatbots, AI Agents, and Auto-dev Agents to conduct Retrieval from actively selected GitHub public projects. It Augments through LLMs and Generates context for any coding question, in order to streamline the development of sophisticated AI-driven applications.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = '0.2.0'
|
|
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
|
{llama_github-0.2.0 → llama_github-0.2.2}/llama_github/github_integration/github_auth_manager.py
RENAMED
|
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
|