lollms-client 0.12.6__py3-none-any.whl → 0.13.0__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 lollms-client might be problematic. Click here for more details.
- examples/article_summary/article_summary.py +58 -0
- examples/deep_analyze/deep_analyse.py +30 -0
- examples/deep_analyze/deep_analyze_multiple_files.py +32 -0
- examples/function_call/functions_call_with images.py +52 -0
- examples/personality_test/chat_test.py +37 -0
- examples/personality_test/chat_with_aristotle.py +42 -0
- examples/personality_test/tesks_test.py +62 -0
- examples/simple_text_gen_test.py +171 -0
- examples/simple_text_gen_with_image_test.py +166 -0
- examples/test_local_models/local_chat.py +9 -0
- examples/text_2_audio.py +77 -0
- examples/text_2_image.py +140 -0
- examples/text_and_image_2_audio.py +59 -0
- examples/text_gen.py +28 -0
- lollms_client/__init__.py +2 -1
- lollms_client/llm_bindings/lollms/__init__.py +13 -11
- lollms_client/llm_bindings/ollama/__init__.py +8 -7
- lollms_client/llm_bindings/openai/__init__.py +69 -29
- lollms_client/llm_bindings/tensor_rt/__init__.py +603 -0
- lollms_client/llm_bindings/transformers/__init__.py +7 -11
- lollms_client/llm_bindings/vllm/__init__.py +603 -0
- lollms_client/lollms_core.py +0 -3
- lollms_client/lollms_llm_binding.py +5 -25
- {lollms_client-0.12.6.dist-info → lollms_client-0.13.0.dist-info}/METADATA +12 -12
- lollms_client-0.13.0.dist-info/RECORD +52 -0
- {lollms_client-0.12.6.dist-info → lollms_client-0.13.0.dist-info}/WHEEL +1 -1
- {lollms_client-0.12.6.dist-info → lollms_client-0.13.0.dist-info}/top_level.txt +1 -0
- lollms_client/lollms_personality.py +0 -403
- lollms_client/lollms_personality_worker.py +0 -1485
- lollms_client/lollms_stt.py +0 -35
- lollms_client/lollms_tti.py +0 -35
- lollms_client/lollms_tts.py +0 -39
- lollms_client-0.12.6.dist-info/RECORD +0 -41
- {lollms_client-0.12.6.dist-info → lollms_client-0.13.0.dist-info}/licenses/LICENSE +0 -0
lollms_client/lollms_stt.py
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import requests
|
|
2
|
-
from pydantic import BaseModel
|
|
3
|
-
from lollms_client.lollms_core import LollmsClient
|
|
4
|
-
from typing import Optional
|
|
5
|
-
|
|
6
|
-
class LollmSTTRequest(BaseModel):
|
|
7
|
-
wave_file_path: str
|
|
8
|
-
model: str = None
|
|
9
|
-
fn:str = None
|
|
10
|
-
|
|
11
|
-
class LollmsSTT:
|
|
12
|
-
def __init__(self, lollmsClient:LollmsClient):
|
|
13
|
-
self.base_url = lollmsClient.host_address
|
|
14
|
-
|
|
15
|
-
def audio2text(self, text, model=None, fn=None):
|
|
16
|
-
endpoint = f"{self.base_url}/text2Audio"
|
|
17
|
-
request_data = LollmSTTRequest(text=text, model=model if model else "base", fn=fn if fn else "fn.wav")
|
|
18
|
-
response = requests.post(endpoint, json=request_data.model_dump())
|
|
19
|
-
|
|
20
|
-
if response.status_code == 200:
|
|
21
|
-
return response.json()
|
|
22
|
-
else:
|
|
23
|
-
response.raise_for_status()
|
|
24
|
-
|
|
25
|
-
def get_voices(self):
|
|
26
|
-
endpoint = f"{self.base_url}/list_stt_models"
|
|
27
|
-
try:
|
|
28
|
-
response = requests.get(endpoint)
|
|
29
|
-
response.raise_for_status() # Raise an error for bad status codes
|
|
30
|
-
voices = response.json() # Assuming the response is in JSON format
|
|
31
|
-
return voices["voices"]
|
|
32
|
-
except requests.exceptions.RequestException as e:
|
|
33
|
-
print(f"Couldn't list voices: {e}")
|
|
34
|
-
return ["main_voice"]
|
|
35
|
-
|
lollms_client/lollms_tti.py
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import requests
|
|
2
|
-
from pydantic import BaseModel
|
|
3
|
-
from lollms_client.lollms_core import LollmsClient
|
|
4
|
-
from typing import Optional
|
|
5
|
-
|
|
6
|
-
class LollmsTTSRequest(BaseModel):
|
|
7
|
-
text: str
|
|
8
|
-
voice: str|None = None
|
|
9
|
-
fn: str|None = None
|
|
10
|
-
|
|
11
|
-
class LollmsTTS:
|
|
12
|
-
def __init__(self, lollmsClient:LollmsClient):
|
|
13
|
-
self.base_url = lollmsClient.host_address
|
|
14
|
-
|
|
15
|
-
def text2Audio(self, text, voice=None, fn=None):
|
|
16
|
-
endpoint = f"{self.base_url}/text2Audio"
|
|
17
|
-
request_data = LollmsTTSRequest(text=text, voice=voice if voice else "main_voice", fn=fn if fn else "fn.wav")
|
|
18
|
-
response = requests.post(endpoint, json=request_data.model_dump())
|
|
19
|
-
|
|
20
|
-
if response.status_code == 200:
|
|
21
|
-
return response.json()
|
|
22
|
-
else:
|
|
23
|
-
response.raise_for_status()
|
|
24
|
-
|
|
25
|
-
def get_voices(self):
|
|
26
|
-
endpoint = f"{self.base_url}/list_voices"
|
|
27
|
-
try:
|
|
28
|
-
response = requests.get(endpoint)
|
|
29
|
-
response.raise_for_status() # Raise an error for bad status codes
|
|
30
|
-
voices = response.json() # Assuming the response is in JSON format
|
|
31
|
-
return voices["voices"]
|
|
32
|
-
except requests.exceptions.RequestException as e:
|
|
33
|
-
print(f"Couldn't list voices: {e}")
|
|
34
|
-
return ["main_voice"]
|
|
35
|
-
|
lollms_client/lollms_tts.py
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import requests
|
|
2
|
-
from pydantic import BaseModel
|
|
3
|
-
from lollms_client.lollms_core import LollmsClient
|
|
4
|
-
from typing import Optional
|
|
5
|
-
from ascii_colors import ASCIIColors
|
|
6
|
-
class LollmsTTSRequest(BaseModel):
|
|
7
|
-
text: str
|
|
8
|
-
voice: str|None = None
|
|
9
|
-
fn: str|None = None
|
|
10
|
-
|
|
11
|
-
class LollmsTTS:
|
|
12
|
-
def __init__(self, lollmsClient:LollmsClient):
|
|
13
|
-
self.base_url = lollmsClient.binding.host_address
|
|
14
|
-
|
|
15
|
-
def text2Audio(self, text, voice=None, fn=None):
|
|
16
|
-
endpoint = f"{self.base_url}/text2Audio"
|
|
17
|
-
request_data = LollmsTTSRequest(text=text, voice=voice if voice else "main_voice", fn=fn if fn else "fn.wav")
|
|
18
|
-
response = requests.post(endpoint, json=request_data.model_dump())
|
|
19
|
-
|
|
20
|
-
if response.status_code == 200:
|
|
21
|
-
return response.json()
|
|
22
|
-
else:
|
|
23
|
-
response.raise_for_status()
|
|
24
|
-
|
|
25
|
-
def get_voices(self):
|
|
26
|
-
endpoint = f"{self.base_url}/list_voices"
|
|
27
|
-
try:
|
|
28
|
-
response = requests.get(endpoint)
|
|
29
|
-
response.raise_for_status() # Raise an error for bad status codes
|
|
30
|
-
voices = response.json() # Assuming the response is in JSON format
|
|
31
|
-
if "error" in voices:
|
|
32
|
-
ASCIIColors.error(voices["error"])
|
|
33
|
-
return []
|
|
34
|
-
else:
|
|
35
|
-
return voices["voices"]
|
|
36
|
-
except requests.exceptions.RequestException as e:
|
|
37
|
-
print(f"Couldn't list voices: {e}")
|
|
38
|
-
return ["main_voice"]
|
|
39
|
-
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
lollms_client/__init__.py,sha256=Ey-ct0qjYx07HIZo5C_6ZOPOwZdlKyrH4LaMszGUzQM,821
|
|
2
|
-
lollms_client/lollms_config.py,sha256=goEseDwDxYJf3WkYJ4IrLXwg3Tfw73CXV2Avg45M_hE,21876
|
|
3
|
-
lollms_client/lollms_core.py,sha256=NYUmzYxxMAPyy8OQ5fnPSerzM5IEYxhz598zZdA6Qrg,77772
|
|
4
|
-
lollms_client/lollms_discussion.py,sha256=9b83m0D894jwpgssWYTQHbVxp1gJoI-J947Ui_dRXII,2073
|
|
5
|
-
lollms_client/lollms_functions.py,sha256=p8SFtmEPqvVCsIz2fZ5HxyOHaxjrAo5c12uTzJnb6m8,3594
|
|
6
|
-
lollms_client/lollms_js_analyzer.py,sha256=01zUvuO2F_lnUe_0NLxe1MF5aHE1hO8RZi48mNPv-aw,8361
|
|
7
|
-
lollms_client/lollms_llm_binding.py,sha256=pYygaOHD4M4LGDNlaV4fAiHtnPzfgDlDNuOcWF0k2RQ,8627
|
|
8
|
-
lollms_client/lollms_personality.py,sha256=gTOU7WJrxyNE88g-9-is5QxMf84s6xbEMAv--SD2P64,20313
|
|
9
|
-
lollms_client/lollms_personality_worker.py,sha256=rQbZg9Gn-R3b6x0Ryb4JPWJzBfn4fObDzj5IWYez_9o,65331
|
|
10
|
-
lollms_client/lollms_python_analyzer.py,sha256=7gf1fdYgXCOkPUkBAPNmr6S-66hMH4_KonOMsADASxc,10246
|
|
11
|
-
lollms_client/lollms_stt.py,sha256=4knP8SSj2S7DAFGXpIHc-_J6pb9xjExutEBd0RNex5E,1282
|
|
12
|
-
lollms_client/lollms_stt_binding.py,sha256=ovmpFF0fnmPC9VNi1-rxAJA8xI4JZDUBh_YwdtoTx28,5818
|
|
13
|
-
lollms_client/lollms_tasks.py,sha256=Tgqces03gPTHFJCcPaeN9vBCsil3SSJX7nQAjCQ2-yg,34393
|
|
14
|
-
lollms_client/lollms_tti.py,sha256=WznZ5ADhig-SFNmwlgviLZaAfl67NVqnZxYzhel3vxU,1287
|
|
15
|
-
lollms_client/lollms_tti_binding.py,sha256=CBCdXt6GQzRPzq7eEujQ5mBOoYcqUUdYY-POHLbJhx8,7469
|
|
16
|
-
lollms_client/lollms_ttm_binding.py,sha256=ymGvHtFqesm32y1ZoyIgMBC1PckTABS-DOh-8SvMkRs,5706
|
|
17
|
-
lollms_client/lollms_tts.py,sha256=KjFNkRmpM4kZpHm-IrPoYr4kPs2nOHNKPov0HXiinkg,1468
|
|
18
|
-
lollms_client/lollms_tts_binding.py,sha256=c4PQVe6NyPUtNguKMPo5L2nHJXjoIEQpCtVLK06p_iA,5880
|
|
19
|
-
lollms_client/lollms_ttv_binding.py,sha256=u-gLIe22tbu4YsKA5RTyUT7iBlKxPXDmoQzccG3_KuA,5672
|
|
20
|
-
lollms_client/lollms_types.py,sha256=cfc1sremM8KR4avkYX99fIVkkdRvXErrCWKGjLrgv50,2723
|
|
21
|
-
lollms_client/lollms_utilities.py,sha256=YAgamfp0pBVApR68AHKjhp1lh6isMNF8iadwWLl63c0,7045
|
|
22
|
-
lollms_client/llm_bindings/__init__.py,sha256=9sWGpmWSSj6KQ8H4lKGCjpLYwhnVdL_2N7gXCphPqh4,14
|
|
23
|
-
lollms_client/llm_bindings/lollms/__init__.py,sha256=H1Vw6trTzinS_xaeNWZ7Aq-3XngbzoYxtA4Se2IeCpQ,12213
|
|
24
|
-
lollms_client/llm_bindings/ollama/__init__.py,sha256=EVM6-IMc_KIAnlMJY4UWOHoZqZNFUUUhXkCzwopIq_I,28425
|
|
25
|
-
lollms_client/llm_bindings/openai/__init__.py,sha256=M3tEB1Qg6jys_dX7qq7bsXwpv4FLPYykWO2R8t7-yu4,10750
|
|
26
|
-
lollms_client/llm_bindings/transformers/__init__.py,sha256=UyaiQcJQricBZJGe1zfNIVy6Cb3QpHSvImSoE9FhgC0,12771
|
|
27
|
-
lollms_client/stt_bindings/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
28
|
-
lollms_client/stt_bindings/lollms/__init__.py,sha256=7-IZkrsn15Vaz0oqkqCxMeNQfMkeilbgScLlrrywES4,6098
|
|
29
|
-
lollms_client/tti_bindings/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
30
|
-
lollms_client/tti_bindings/lollms/__init__.py,sha256=y1mcAsaYnWUVEw1Wq3Gxur4srwKDWu2IKRgwtsSPifY,9082
|
|
31
|
-
lollms_client/ttm_bindings/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
32
|
-
lollms_client/ttm_bindings/lollms/__init__.py,sha256=DU3WLmJaWNM1NAMtJsnaFo4Y9wlfc675M8aUiaLnojA,3143
|
|
33
|
-
lollms_client/tts_bindings/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
34
|
-
lollms_client/tts_bindings/lollms/__init__.py,sha256=8x2_T9XscvISw2TiaLoFxvrS7TIsVLdqbwSc04cX-wc,7164
|
|
35
|
-
lollms_client/ttv_bindings/__init__.py,sha256=UZ8o2izQOJLQgtZ1D1cXoNST7rzqW22rL2Vufc7ddRc,3141
|
|
36
|
-
lollms_client/ttv_bindings/lollms/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
37
|
-
lollms_client-0.12.6.dist-info/licenses/LICENSE,sha256=HrhfyXIkWY2tGFK11kg7vPCqhgh5DcxleloqdhrpyMY,11558
|
|
38
|
-
lollms_client-0.12.6.dist-info/METADATA,sha256=vqmLDZ2nBJOZ9tKLHWsU8Gat4maKzJ5UqaMK2f2SUsE,6866
|
|
39
|
-
lollms_client-0.12.6.dist-info/WHEEL,sha256=SmOxYU7pzNKBqASvQJ7DjX3XGUF92lrGhMb3R6_iiqI,91
|
|
40
|
-
lollms_client-0.12.6.dist-info/top_level.txt,sha256=Bk_kz-ri6Arwsk7YG-T5VsRorV66uVhcHGvb_g2WqgE,14
|
|
41
|
-
lollms_client-0.12.6.dist-info/RECORD,,
|
|
File without changes
|