LLMlight 0.2.0__tar.gz → 0.2.1__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.
- {llmlight-0.2.0 → llmlight-0.2.1}/LLMlight/LLMlight.py +5 -7
- {llmlight-0.2.0 → llmlight-0.2.1}/LLMlight/__init__.py +1 -1
- {llmlight-0.2.0 → llmlight-0.2.1}/LLMlight.egg-info/PKG-INFO +2 -1
- {llmlight-0.2.0 → llmlight-0.2.1}/LLMlight.egg-info/requires.txt +1 -0
- {llmlight-0.2.0 → llmlight-0.2.1}/PKG-INFO +2 -1
- {llmlight-0.2.0 → llmlight-0.2.1}/pyproject.toml +1 -0
- {llmlight-0.2.0 → llmlight-0.2.1}/LICENSE +0 -0
- {llmlight-0.2.0 → llmlight-0.2.1}/LLMlight/RAG.py +0 -0
- {llmlight-0.2.0 → llmlight-0.2.1}/LLMlight/examples.py +0 -0
- {llmlight-0.2.0 → llmlight-0.2.1}/LLMlight/utils.py +0 -0
- {llmlight-0.2.0 → llmlight-0.2.1}/LLMlight.egg-info/SOURCES.txt +0 -0
- {llmlight-0.2.0 → llmlight-0.2.1}/LLMlight.egg-info/dependency_links.txt +0 -0
- {llmlight-0.2.0 → llmlight-0.2.1}/LLMlight.egg-info/top_level.txt +0 -0
- {llmlight-0.2.0 → llmlight-0.2.1}/MANIFEST.in +0 -0
- {llmlight-0.2.0 → llmlight-0.2.1}/README.md +0 -0
- {llmlight-0.2.0 → llmlight-0.2.1}/setup.cfg +0 -0
|
@@ -143,16 +143,14 @@ class LLMlight:
|
|
|
143
143
|
|
|
144
144
|
def get_available_models(self, validate=False):
|
|
145
145
|
# Set your local API base URL
|
|
146
|
-
# base_url =
|
|
147
|
-
base_url = self.endpoint.split(
|
|
146
|
+
# base_url = 'http://localhost:1234/v1/chat/completions'
|
|
147
|
+
base_url = '/'.join(self.endpoint.split('/')[:3]) + '/'
|
|
148
148
|
logger.info('Collecting models in the API endpoint..')
|
|
149
149
|
|
|
150
|
-
# Query available models
|
|
151
|
-
response = requests.get(f"{base_url}/models")
|
|
152
|
-
model_dict = {}
|
|
153
|
-
|
|
154
150
|
try:
|
|
155
|
-
|
|
151
|
+
model_url = base_url.rstrip('/') + '/v1/models'
|
|
152
|
+
logger.info(f'Looking up models: {model_url}')
|
|
153
|
+
response = requests.get(model_url, timeout=10)
|
|
156
154
|
if response.status_code == 200:
|
|
157
155
|
try:
|
|
158
156
|
models = response.json()["data"]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: LLMlight
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.1
|
|
4
4
|
Summary: LLMlight is a Python library for ...
|
|
5
5
|
Author-email: Erdogan Taskesen <erdogant@gmail.com>
|
|
6
6
|
License: MIT License
|
|
@@ -46,6 +46,7 @@ Requires-Dist: llama-cpp-python
|
|
|
46
46
|
Requires-Dist: json-repair
|
|
47
47
|
Requires-Dist: pymupdf
|
|
48
48
|
Requires-Dist: torch
|
|
49
|
+
Requires-Dist: requests
|
|
49
50
|
Dynamic: license-file
|
|
50
51
|
|
|
51
52
|
# LLMlight
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: LLMlight
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.1
|
|
4
4
|
Summary: LLMlight is a Python library for ...
|
|
5
5
|
Author-email: Erdogan Taskesen <erdogant@gmail.com>
|
|
6
6
|
License: MIT License
|
|
@@ -46,6 +46,7 @@ Requires-Dist: llama-cpp-python
|
|
|
46
46
|
Requires-Dist: json-repair
|
|
47
47
|
Requires-Dist: pymupdf
|
|
48
48
|
Requires-Dist: torch
|
|
49
|
+
Requires-Dist: requests
|
|
49
50
|
Dynamic: license-file
|
|
50
51
|
|
|
51
52
|
# LLMlight
|
|
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
|