llama-github 0.2.5__tar.gz → 0.2.7__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.
Files changed (40) hide show
  1. {llama_github-0.2.5 → llama_github-0.2.7}/CHANGELOG.md +5 -0
  2. {llama_github-0.2.5/llama_github.egg-info → llama_github-0.2.7}/PKG-INFO +8 -3
  3. {llama_github-0.2.5 → llama_github-0.2.7}/llama_github/data_retrieval/github_entities.py +24 -8
  4. {llama_github-0.2.5 → llama_github-0.2.7}/llama_github/llm_integration/initial_load.py +5 -5
  5. llama_github-0.2.7/llama_github/version.py +1 -0
  6. {llama_github-0.2.5 → llama_github-0.2.7/llama_github.egg-info}/PKG-INFO +8 -3
  7. {llama_github-0.2.5 → llama_github-0.2.7}/llama_github.egg-info/requires.txt +0 -1
  8. {llama_github-0.2.5 → llama_github-0.2.7}/setup.cfg +1 -1
  9. llama_github-0.2.5/llama_github/version.py +0 -1
  10. {llama_github-0.2.5 → llama_github-0.2.7}/LICENSE +0 -0
  11. {llama_github-0.2.5 → llama_github-0.2.7}/MANIFEST.in +0 -0
  12. {llama_github-0.2.5 → llama_github-0.2.7}/README.md +0 -0
  13. {llama_github-0.2.5 → llama_github-0.2.7}/llama_github/__init__.py +0 -0
  14. {llama_github-0.2.5 → llama_github-0.2.7}/llama_github/config/__init__.py +0 -0
  15. {llama_github-0.2.5 → llama_github-0.2.7}/llama_github/config/config.json +0 -0
  16. {llama_github-0.2.5 → llama_github-0.2.7}/llama_github/config/config.py +0 -0
  17. {llama_github-0.2.5 → llama_github-0.2.7}/llama_github/data_retrieval/__init__.py +0 -0
  18. {llama_github-0.2.5 → llama_github-0.2.7}/llama_github/data_retrieval/github_api.py +0 -0
  19. {llama_github-0.2.5 → llama_github-0.2.7}/llama_github/features/__init__.py +0 -0
  20. {llama_github-0.2.5 → llama_github-0.2.7}/llama_github/features/feature_flags.py +0 -0
  21. {llama_github-0.2.5 → llama_github-0.2.7}/llama_github/features/insider_features.py +0 -0
  22. {llama_github-0.2.5 → llama_github-0.2.7}/llama_github/github_integration/__init__.py +0 -0
  23. {llama_github-0.2.5 → llama_github-0.2.7}/llama_github/github_integration/github_auth_manager.py +0 -0
  24. {llama_github-0.2.5 → llama_github-0.2.7}/llama_github/github_rag.py +0 -0
  25. {llama_github-0.2.5 → llama_github-0.2.7}/llama_github/llm_integration/__init__.py +0 -0
  26. {llama_github-0.2.5 → llama_github-0.2.7}/llama_github/llm_integration/llm_handler.py +0 -0
  27. {llama_github-0.2.5 → llama_github-0.2.7}/llama_github/logger.py +0 -0
  28. {llama_github-0.2.5 → llama_github-0.2.7}/llama_github/rag_processing/__init__.py +0 -0
  29. {llama_github-0.2.5 → llama_github-0.2.7}/llama_github/rag_processing/rag_processor.py +0 -0
  30. {llama_github-0.2.5 → llama_github-0.2.7}/llama_github/utils.py +0 -0
  31. {llama_github-0.2.5 → llama_github-0.2.7}/llama_github.egg-info/SOURCES.txt +0 -0
  32. {llama_github-0.2.5 → llama_github-0.2.7}/llama_github.egg-info/dependency_links.txt +0 -0
  33. {llama_github-0.2.5 → llama_github-0.2.7}/llama_github.egg-info/top_level.txt +0 -0
  34. {llama_github-0.2.5 → llama_github-0.2.7}/setup.py +0 -0
  35. {llama_github-0.2.5 → llama_github-0.2.7}/tests/test_data_retrieval.py +0 -0
  36. {llama_github-0.2.5 → llama_github-0.2.7}/tests/test_github_auth_manager.py +0 -0
  37. {llama_github-0.2.5 → llama_github-0.2.7}/tests/test_initial_load.py +0 -0
  38. {llama_github-0.2.5 → llama_github-0.2.7}/tests/test_llm_handler.py +0 -0
  39. {llama_github-0.2.5 → llama_github-0.2.7}/tests/test_logger.py +0 -0
  40. {llama_github-0.2.5 → llama_github-0.2.7}/tests/test_rag_processor.py +0 -0
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [0.2.3] - 2024-11-24
9
9
 
10
+ ### Optimized
11
+ - Upgrade to codestral-latest
12
+
13
+ ## [0.2.3] - 2024-11-24
14
+
10
15
  ### Optimized
11
16
  - Upgrade to mistral-large-2411
12
17
 
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: llama-github
3
- Version: 0.2.5
3
+ Version: 0.2.7
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
@@ -21,7 +21,6 @@ Requires-Dist: pydantic
21
21
  Requires-Dist: requests
22
22
  Requires-Dist: transformers
23
23
  Requires-Dist: urllib3
24
- Requires-Dist: sys
25
24
  Requires-Dist: platform
26
25
  Requires-Dist: subprocess
27
26
  Requires-Dist: pydantic_core
@@ -33,6 +32,7 @@ Provides-Extra: dev
33
32
  Requires-Dist: pytest; extra == "dev"
34
33
  Requires-Dist: black; extra == "dev"
35
34
  Requires-Dist: flake8; extra == "dev"
35
+ Dynamic: requires-dist
36
36
 
37
37
  # llama-github
38
38
 
@@ -158,6 +158,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
158
158
 
159
159
  ## [0.2.3] - 2024-11-24
160
160
 
161
+ ### Optimized
162
+ - Upgrade to codestral-latest
163
+
164
+ ## [0.2.3] - 2024-11-24
165
+
161
166
  ### Optimized
162
167
  - Upgrade to mistral-large-2411
163
168
 
@@ -205,8 +205,19 @@ class Repository:
205
205
  '.iml', '.ipr', '.iws',
206
206
 
207
207
  # Map Files
208
- '.map', '.js.map', '.css.map'
209
-
208
+ '.map', '.js.map', '.css.map',
209
+
210
+ # PowerBI Binary and Cache Files
211
+ '.pbix', # PowerBI packaged report file - binary format containing report, data model and resources
212
+ '.pbit', # PowerBI template file - binary format for report templates
213
+ '.abf', # Analysis Services Backup File - contains model and data cache
214
+
215
+ # PowerBI Dataset Files
216
+ '.bim', # Analysis Services Tabular Model file - contains data model definitions
217
+ '.database', # PowerBI database definition file - auto-generated
218
+ '.deploymentoptions', # Deployment configuration file - auto-generated
219
+ '.deploymenttargets', # Deployment targets file - auto-generated
220
+
210
221
  ]) or any(pattern in file_path for pattern in [
211
222
  # Cache and Temporary Directories
212
223
  '/__pycache__/',
@@ -253,6 +264,11 @@ class Repository:
253
264
  # Logs
254
265
  '/logs/',
255
266
  '/log/',
267
+
268
+ # PowerBI Specific Directories
269
+ '/.pbi/', # PowerBI cache and temporary files directory
270
+ '/Dataset/.pbi/', # PowerBI dataset cache directory
271
+ '/.pbixproj/', # PowerBI project configuration directory - contains auto-generated files
256
272
 
257
273
  # Binary Assets
258
274
  '/assets/images/',
@@ -669,10 +685,10 @@ class Repository:
669
685
  custom_diff = ''
670
686
 
671
687
  # Categorize code changes
672
- # change_categories = CodeAnalyzer.categorize_change(custom_diff)
688
+ change_categories = CodeAnalyzer.categorize_change(custom_diff)
673
689
 
674
690
  # Extract imports from head content
675
- # related_modules = CodeAnalyzer.extract_imports(head_content) if language == 'Python' and head_content else []
691
+ related_modules = CodeAnalyzer.extract_imports(head_content) if language == 'Python' and head_content else []
676
692
 
677
693
  # Build file change entry
678
694
  file_change = {
@@ -682,9 +698,9 @@ class Repository:
682
698
  "language": language,
683
699
  "additions": additions,
684
700
  "deletions": deletions,
685
- "changes": changes #,
686
- # "change_categories": change_categories,
687
- # "related_modules": related_modules
701
+ "changes": changes,
702
+ "change_categories": change_categories,
703
+ "related_modules": related_modules
688
704
  }
689
705
 
690
706
  # Check for dependency changes
@@ -706,7 +722,7 @@ class Repository:
706
722
 
707
723
  self._prs[number] = pr_data
708
724
  logger.debug(f"Collected details for PR #{number}: {pr.title}")
709
- except GithubException as e:
725
+ except Exception as e:
710
726
  logger.exception(f"Error getting PR content for #{number} in repository {self.full_name}")
711
727
  self.update_last_read_time()
712
728
  return self._prs[number]
@@ -1,8 +1,6 @@
1
1
  # initial_load.py
2
2
  from typing import Optional, Any
3
3
  from threading import Lock
4
- from langchain_openai import ChatOpenAI
5
- from langchain_mistralai.chat_models import ChatMistralAI
6
4
 
7
5
  from llama_github.config.config import config
8
6
  from llama_github.logger import logger
@@ -67,15 +65,17 @@ class LLMManager:
67
65
  self.llm = llm
68
66
  self.model_type = "Custom_langchain_llm"
69
67
  elif mistral_api_key is not None and mistral_api_key != "" and self.llm is None:
70
- logger.info("Initializing Mistral API...")
71
- self.llm = ChatMistralAI(mistral_api_key=mistral_api_key, model="mistral-large-2411")
68
+ logger.info("Initializing Codestral API...")
69
+ from langchain_mistralai.chat_models import ChatMistralAI
70
+ self.llm = ChatMistralAI(mistral_api_key=mistral_api_key, model="codestral-latest")
72
71
  self.llm_simple = ChatMistralAI(
73
72
  mistral_api_key=mistral_api_key,
74
- model="open-mistral-nemo",
73
+ model="open-mistral-nemo",
75
74
  temperature=0.2
76
75
  )
77
76
  self.model_type = "OpenAI"
78
77
  elif openai_api_key is not None and openai_api_key != "" and self.llm is None:
78
+ from langchain_openai import ChatOpenAI
79
79
  logger.info("Initializing OpenAI API...")
80
80
  self.llm = ChatOpenAI(api_key=openai_api_key, model="gpt-4-turbo")
81
81
  self.llm_simple = ChatOpenAI(
@@ -0,0 +1 @@
1
+ __version__ = '0.2.7'
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: llama-github
3
- Version: 0.2.5
3
+ Version: 0.2.7
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
@@ -21,7 +21,6 @@ Requires-Dist: pydantic
21
21
  Requires-Dist: requests
22
22
  Requires-Dist: transformers
23
23
  Requires-Dist: urllib3
24
- Requires-Dist: sys
25
24
  Requires-Dist: platform
26
25
  Requires-Dist: subprocess
27
26
  Requires-Dist: pydantic_core
@@ -33,6 +32,7 @@ Provides-Extra: dev
33
32
  Requires-Dist: pytest; extra == "dev"
34
33
  Requires-Dist: black; extra == "dev"
35
34
  Requires-Dist: flake8; extra == "dev"
35
+ Dynamic: requires-dist
36
36
 
37
37
  # llama-github
38
38
 
@@ -158,6 +158,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
158
158
 
159
159
  ## [0.2.3] - 2024-11-24
160
160
 
161
+ ### Optimized
162
+ - Upgrade to codestral-latest
163
+
164
+ ## [0.2.3] - 2024-11-24
165
+
161
166
  ### Optimized
162
167
  - Upgrade to mistral-large-2411
163
168
 
@@ -8,7 +8,6 @@ pydantic
8
8
  requests
9
9
  transformers
10
10
  urllib3
11
- sys
12
11
  platform
13
12
  subprocess
14
13
  pydantic_core
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = llama-github
3
- version = 0.2.5
3
+ version = 0.2.7
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.5'
File without changes
File without changes
File without changes
File without changes