lollms-client 0.9.0__tar.gz → 0.9.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.
Potentially problematic release.
This version of lollms-client might be problematic. Click here for more details.
- {lollms_client-0.9.0 → lollms_client-0.9.1}/PKG-INFO +1 -1
- {lollms_client-0.9.0 → lollms_client-0.9.1}/lollms_client/lollms_core.py +27 -0
- {lollms_client-0.9.0 → lollms_client-0.9.1}/lollms_client.egg-info/PKG-INFO +1 -1
- {lollms_client-0.9.0 → lollms_client-0.9.1}/setup.py +1 -1
- {lollms_client-0.9.0 → lollms_client-0.9.1}/LICENSE +0 -0
- {lollms_client-0.9.0 → lollms_client-0.9.1}/README.md +0 -0
- {lollms_client-0.9.0 → lollms_client-0.9.1}/lollms_client/__init__.py +0 -0
- {lollms_client-0.9.0 → lollms_client-0.9.1}/lollms_client/lollms_config.py +0 -0
- {lollms_client-0.9.0 → lollms_client-0.9.1}/lollms_client/lollms_discussion.py +0 -0
- {lollms_client-0.9.0 → lollms_client-0.9.1}/lollms_client/lollms_functions.py +0 -0
- {lollms_client-0.9.0 → lollms_client-0.9.1}/lollms_client/lollms_js_analyzer.py +0 -0
- {lollms_client-0.9.0 → lollms_client-0.9.1}/lollms_client/lollms_personality.py +0 -0
- {lollms_client-0.9.0 → lollms_client-0.9.1}/lollms_client/lollms_personality_worker.py +0 -0
- {lollms_client-0.9.0 → lollms_client-0.9.1}/lollms_client/lollms_python_analyzer.py +0 -0
- {lollms_client-0.9.0 → lollms_client-0.9.1}/lollms_client/lollms_stt.py +0 -0
- {lollms_client-0.9.0 → lollms_client-0.9.1}/lollms_client/lollms_tasks.py +0 -0
- {lollms_client-0.9.0 → lollms_client-0.9.1}/lollms_client/lollms_tti.py +0 -0
- {lollms_client-0.9.0 → lollms_client-0.9.1}/lollms_client/lollms_tts.py +0 -0
- {lollms_client-0.9.0 → lollms_client-0.9.1}/lollms_client/lollms_types.py +0 -0
- {lollms_client-0.9.0 → lollms_client-0.9.1}/lollms_client/lollms_utilities.py +0 -0
- {lollms_client-0.9.0 → lollms_client-0.9.1}/lollms_client.egg-info/SOURCES.txt +0 -0
- {lollms_client-0.9.0 → lollms_client-0.9.1}/lollms_client.egg-info/dependency_links.txt +0 -0
- {lollms_client-0.9.0 → lollms_client-0.9.1}/lollms_client.egg-info/requires.txt +0 -0
- {lollms_client-0.9.0 → lollms_client-0.9.1}/lollms_client.egg-info/top_level.txt +0 -0
- {lollms_client-0.9.0 → lollms_client-0.9.1}/setup.cfg +0 -0
|
@@ -20,11 +20,38 @@ class ELF_GENERATION_FORMAT(Enum):
|
|
|
20
20
|
LITELLM = 3
|
|
21
21
|
TRANSFORMERS = 4
|
|
22
22
|
VLLM = 5
|
|
23
|
+
|
|
24
|
+
@classmethod
|
|
25
|
+
def from_string(cls, format_string: str) -> 'ELF_GENERATION_FORMAT':
|
|
26
|
+
format_mapping = {
|
|
27
|
+
"LOLLMS": cls.LOLLMS,
|
|
28
|
+
"OPENAI": cls.OPENAI,
|
|
29
|
+
"OLLAMA": cls.OLLAMA,
|
|
30
|
+
"LITELLM": cls.LITELLM,
|
|
31
|
+
"TRANSFORMERS": cls.TRANSFORMERS,
|
|
32
|
+
"VLLM": cls.VLLM
|
|
33
|
+
}
|
|
23
34
|
|
|
35
|
+
try:
|
|
36
|
+
return format_mapping[format_string.upper()]
|
|
37
|
+
except KeyError:
|
|
38
|
+
raise ValueError(f"Invalid format string: {format_string}. Must be one of {list(format_mapping.keys())}.")
|
|
39
|
+
|
|
24
40
|
class ELF_COMPLETION_FORMAT(Enum):
|
|
25
41
|
Instruct = 0
|
|
26
42
|
Chat = 1
|
|
43
|
+
@classmethod
|
|
44
|
+
def from_string(cls, format_string: str) -> 'ELF_COMPLETION_FORMAT':
|
|
45
|
+
format_mapping = {
|
|
46
|
+
"Instruct": cls.Instruct,
|
|
47
|
+
"Chat": cls.Chat,
|
|
48
|
+
}
|
|
27
49
|
|
|
50
|
+
try:
|
|
51
|
+
return format_mapping[format_string.upper()]
|
|
52
|
+
except KeyError:
|
|
53
|
+
raise ValueError(f"Invalid format string: {format_string}. Must be one of {list(format_mapping.keys())}.")
|
|
54
|
+
|
|
28
55
|
class LollmsClient():
|
|
29
56
|
def __init__(
|
|
30
57
|
self,
|
|
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
|
|
File without changes
|
|
File without changes
|