gllm-inference-binary 0.5.57__cp313-cp313-win_amd64.whl → 0.5.58__cp313-cp313-win_amd64.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 gllm-inference-binary might be problematic. Click here for more details.
- gllm_inference/schema/attachment.pyi +19 -5
- gllm_inference.cp313-win_amd64.pyd +0 -0
- gllm_inference.pyi +1 -0
- {gllm_inference_binary-0.5.57.dist-info → gllm_inference_binary-0.5.58.dist-info}/METADATA +1 -1
- {gllm_inference_binary-0.5.57.dist-info → gllm_inference_binary-0.5.58.dist-info}/RECORD +7 -7
- {gllm_inference_binary-0.5.57.dist-info → gllm_inference_binary-0.5.58.dist-info}/WHEEL +0 -0
- {gllm_inference_binary-0.5.57.dist-info → gllm_inference_binary-0.5.58.dist-info}/top_level.txt +0 -0
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
from _typeshed import Incomplete
|
|
2
2
|
from pydantic import BaseModel
|
|
3
|
+
from typing import Any
|
|
3
4
|
|
|
4
5
|
HEX_REPR_LENGTH: int
|
|
6
|
+
METADATA_ITEM_REPR_LENGTH: int
|
|
5
7
|
logger: Incomplete
|
|
6
8
|
|
|
7
9
|
class Attachment(BaseModel):
|
|
@@ -13,68 +15,80 @@ class Attachment(BaseModel):
|
|
|
13
15
|
mime_type (str): The mime type of the file attachment.
|
|
14
16
|
extension (str): The extension of the file attachment.
|
|
15
17
|
url (str | None): The URL of the file attachment. Defaults to None.
|
|
18
|
+
metadata (dict[str, Any]): The metadata of the file attachment. Defaults to an empty dictionary.
|
|
16
19
|
"""
|
|
17
20
|
data: bytes
|
|
18
21
|
filename: str
|
|
19
22
|
mime_type: str
|
|
20
23
|
extension: str
|
|
21
24
|
url: str | None
|
|
25
|
+
metadata: dict[str, Any]
|
|
22
26
|
@classmethod
|
|
23
|
-
def from_bytes(cls, bytes: bytes, filename: str | None = None) -> Attachment:
|
|
27
|
+
def from_bytes(cls, bytes: bytes, filename: str | None = None, metadata: dict[str, Any] | None = None) -> Attachment:
|
|
24
28
|
"""Creates an Attachment from bytes.
|
|
25
29
|
|
|
26
30
|
Args:
|
|
27
31
|
bytes (bytes): The bytes of the file.
|
|
28
32
|
filename (str | None, optional): The filename of the file. Defaults to None,
|
|
29
33
|
in which case the filename will be derived from the extension.
|
|
34
|
+
metadata (dict[str, Any] | None, optional): The metadata of the file attachment. Defaults to None,
|
|
35
|
+
in which case an empty dictionary will be used.
|
|
30
36
|
|
|
31
37
|
Returns:
|
|
32
38
|
Attachment: The instantiated Attachment.
|
|
33
39
|
"""
|
|
34
40
|
@classmethod
|
|
35
|
-
def from_base64(cls, base64_data: str, filename: str | None = None) -> Attachment:
|
|
41
|
+
def from_base64(cls, base64_data: str, filename: str | None = None, metadata: dict[str, Any] | None = None) -> Attachment:
|
|
36
42
|
"""Creates an Attachment from a base64 string.
|
|
37
43
|
|
|
38
44
|
Args:
|
|
39
45
|
base64_data (str): The base64 string of the file.
|
|
40
46
|
filename (str | None, optional): The filename of the file. Defaults to None,
|
|
41
47
|
in which case the filename will be derived from the mime type.
|
|
48
|
+
metadata (dict[str, Any] | None, optional): The metadata of the file attachment. Defaults to None,
|
|
49
|
+
in which case an empty dictionary will be used.
|
|
42
50
|
|
|
43
51
|
Returns:
|
|
44
52
|
Attachment: The instantiated Attachment.
|
|
45
53
|
"""
|
|
46
54
|
@classmethod
|
|
47
|
-
def from_data_url(cls, data_url: str, filename: str | None = None) -> Attachment:
|
|
55
|
+
def from_data_url(cls, data_url: str, filename: str | None = None, metadata: dict[str, Any] | None = None) -> Attachment:
|
|
48
56
|
"""Creates an Attachment from a data URL (data:[mime/type];base64,[bytes]).
|
|
49
57
|
|
|
50
58
|
Args:
|
|
51
59
|
data_url (str): The data URL of the file.
|
|
52
60
|
filename (str | None, optional): The filename of the file. Defaults to None,
|
|
53
61
|
in which case the filename will be derived from the mime type.
|
|
62
|
+
metadata (dict[str, Any] | None, optional): The metadata of the file attachment. Defaults to None,
|
|
63
|
+
in which case an empty dictionary will be used.
|
|
54
64
|
|
|
55
65
|
Returns:
|
|
56
66
|
Attachment: The instantiated Attachment.
|
|
57
67
|
"""
|
|
58
68
|
@classmethod
|
|
59
|
-
def from_url(cls, url: str, filename: str | None = None) -> Attachment:
|
|
69
|
+
def from_url(cls, url: str, filename: str | None = None, metadata: dict[str, Any] | None = None) -> Attachment:
|
|
60
70
|
"""Creates an Attachment from a URL.
|
|
61
71
|
|
|
62
72
|
Args:
|
|
63
73
|
url (str): The URL of the file.
|
|
64
74
|
filename (str | None, optional): The filename of the file. Defaults to None,
|
|
65
75
|
in which case the filename will be derived from the URL.
|
|
76
|
+
metadata (dict[str, Any] | None, optional): The metadata of the file attachment. Defaults to None,
|
|
77
|
+
in which case an empty dictionary will be used.
|
|
66
78
|
|
|
67
79
|
Returns:
|
|
68
80
|
Attachment: The instantiated Attachment.
|
|
69
81
|
"""
|
|
70
82
|
@classmethod
|
|
71
|
-
def from_path(cls, path: str, filename: str | None = None) -> Attachment:
|
|
83
|
+
def from_path(cls, path: str, filename: str | None = None, metadata: dict[str, Any] | None = None) -> Attachment:
|
|
72
84
|
"""Creates an Attachment from a path.
|
|
73
85
|
|
|
74
86
|
Args:
|
|
75
87
|
path (str): The path to the file.
|
|
76
88
|
filename (str | None, optional): The filename of the file. Defaults to None,
|
|
77
89
|
in which case the filename will be derived from the path.
|
|
90
|
+
metadata (dict[str, Any] | None, optional): The metadata of the file attachment. Defaults to None,
|
|
91
|
+
in which case an empty dictionary will be used.
|
|
78
92
|
|
|
79
93
|
Returns:
|
|
80
94
|
Attachment: The instantiated Attachment.
|
|
Binary file
|
gllm_inference.pyi
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: gllm-inference-binary
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.58
|
|
4
4
|
Summary: A library containing components related to model inferences in Gen AI applications.
|
|
5
5
|
Author-email: Henry Wicaksono <henry.wicaksono@gdplabs.id>, Resti Febrina <resti.febrina@gdplabs.id>
|
|
6
6
|
Requires-Python: <3.14,>=3.11
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
gllm_inference.cp313-win_amd64.pyd,sha256=
|
|
2
|
-
gllm_inference.pyi,sha256=
|
|
1
|
+
gllm_inference.cp313-win_amd64.pyd,sha256=ALouqj0s0Yb58brERp70iSEqt3z43rvzmoaxoqBeDkY,3979264
|
|
2
|
+
gllm_inference.pyi,sha256=9Q306Q-5LNldZnCgffJF11yHsCsqaHQwd3jpHw2tH48,5097
|
|
3
3
|
gllm_inference/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
gllm_inference/constants.pyi,sha256=8jIYOyxJYVWUYXSXF3vag9HhHwjq1iU9tzPiosRHkWk,328
|
|
5
5
|
gllm_inference/builder/__init__.pyi,sha256=-bw1uDx7CAM7pkvjvb1ZXku9zXlQ7aEAyC83KIn3bz8,506
|
|
@@ -111,7 +111,7 @@ gllm_inference/request_processor/lm_request_processor.pyi,sha256=0fy1HyILCVDw6y4
|
|
|
111
111
|
gllm_inference/request_processor/uses_lm_mixin.pyi,sha256=LYHq-zLoXEMel1LfVdYv7W3BZ8WtBLo_WWFjRf10Yto,6512
|
|
112
112
|
gllm_inference/schema/__init__.pyi,sha256=4qSVD761xZz1r_GML6g7DDAJhg4nrmG17eYdfocRk-I,2422
|
|
113
113
|
gllm_inference/schema/activity.pyi,sha256=atrU4OwLesA9FEt1H7K3gsUWYNdOqpI5i2VdWkmo6cs,2367
|
|
114
|
-
gllm_inference/schema/attachment.pyi,sha256=
|
|
114
|
+
gllm_inference/schema/attachment.pyi,sha256=myJ_cI_h5mwUdvmMrWpSQIwj3nIxe8SD7HxO37o_3D4,4611
|
|
115
115
|
gllm_inference/schema/code_exec_result.pyi,sha256=WQ-ARoGM9r6nyRX-A0Ro1XKiqrc9R3jRYXZpu_xo5S4,573
|
|
116
116
|
gllm_inference/schema/config.pyi,sha256=NVmjQK6HipIE0dKSfx12hgIC0O-S1HEcAc-TWlXAF5A,689
|
|
117
117
|
gllm_inference/schema/enums.pyi,sha256=aJjmCCUV4ASDM8VTiSJlxPxdapKkxXjS4_NqRplyUnE,2145
|
|
@@ -131,7 +131,7 @@ gllm_inference/utils/io_utils.pyi,sha256=Eg7dvHWdXslTKdjh1j3dG50i7r35XG2zTmJ9XXv
|
|
|
131
131
|
gllm_inference/utils/langchain.pyi,sha256=4AwFiVAO0ZpdgmqeC4Pb5NJwBt8vVr0MSUqLeCdTscc,1194
|
|
132
132
|
gllm_inference/utils/validation.pyi,sha256=OWRZxeVGIuuvNU0LqLGB-9gNmypvbH-LcSJx91rnH1k,453
|
|
133
133
|
gllm_inference.build/.gitignore,sha256=aEiIwOuxfzdCmLZe4oB1JsBmCUxwG8x-u-HBCV9JT8E,1
|
|
134
|
-
gllm_inference_binary-0.5.
|
|
135
|
-
gllm_inference_binary-0.5.
|
|
136
|
-
gllm_inference_binary-0.5.
|
|
137
|
-
gllm_inference_binary-0.5.
|
|
134
|
+
gllm_inference_binary-0.5.58.dist-info/METADATA,sha256=vkXLbZSNRDU_sSSB8_3vsYupuJJGtsEiauFswv46_No,5945
|
|
135
|
+
gllm_inference_binary-0.5.58.dist-info/WHEEL,sha256=O_u6PJIQ2pIcyIInxVQ9r-yArMuUZbBIaF1kpYVkYxA,96
|
|
136
|
+
gllm_inference_binary-0.5.58.dist-info/top_level.txt,sha256=FpOjtN80F-qVNgbScXSEyqa0w09FYn6301iq6qt69IQ,15
|
|
137
|
+
gllm_inference_binary-0.5.58.dist-info/RECORD,,
|
|
File without changes
|
{gllm_inference_binary-0.5.57.dist-info → gllm_inference_binary-0.5.58.dist-info}/top_level.txt
RENAMED
|
File without changes
|