gllm-inference-binary 0.5.3__cp311-cp311-manylinux_2_31_x86_64.whl → 0.5.4__cp311-cp311-manylinux_2_31_x86_64.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.
@@ -32,6 +32,18 @@ class Attachment(BaseModel):
32
32
  Attachment: The instantiated Attachment.
33
33
  """
34
34
  @classmethod
35
+ def from_base64(cls, base64_data: str, filename: str | None = None) -> Attachment:
36
+ """Creates an Attachment from a base64 string.
37
+
38
+ Args:
39
+ base64_data (str): The base64 string of the file.
40
+ filename (str | None, optional): The filename of the file. Defaults to None,
41
+ in which case the filename will be derived from the mime type.
42
+
43
+ Returns:
44
+ Attachment: The instantiated Attachment.
45
+ """
46
+ @classmethod
35
47
  def from_data_url(cls, data_url: str, filename: str | None = None) -> Attachment:
36
48
  """Creates an Attachment from a data URL (data:[mime/type];base64,[bytes]).
37
49
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: gllm-inference-binary
3
- Version: 0.5.3
3
+ Version: 0.5.4
4
4
  Summary: A library containing components related to model inferences in Gen AI applications.
5
5
  Author: Henry Wicaksono
6
6
  Author-email: henry.wicaksono@gdplabs.id
@@ -71,7 +71,7 @@ gllm_inference/request_processor/__init__.pyi,sha256=hVnfdNZnkTBJHnmLtN3Na4ANP0y
71
71
  gllm_inference/request_processor/lm_request_processor.pyi,sha256=7pVNb2GwITb1jTflZP498qZ321G15b16jayZuuhuO1o,5424
72
72
  gllm_inference/request_processor/uses_lm_mixin.pyi,sha256=He-ytjwv2H5Hn312WFBAlBK96ALKTtDO3AT_80hCGTg,2321
73
73
  gllm_inference/schema/__init__.pyi,sha256=bJeO_4fCFPmYrVZ-4RQw0eQn62X228pB0w2tYDM-oek,1238
74
- gllm_inference/schema/attachment.pyi,sha256=FgVab4bU7KpGovexsOOQF4iuCrFbmV8gJDK3VP45hUU,2810
74
+ gllm_inference/schema/attachment.pyi,sha256=jApuzjOHJDCz4lr4MlHzBgIndh559nbWu2Xp1fk3hso,3297
75
75
  gllm_inference/schema/code_exec_result.pyi,sha256=ZTHh6JtRrPIdQ059P1UAiD2L-tAO1_S5YcMsAXfJ5A0,559
76
76
  gllm_inference/schema/enums.pyi,sha256=Nvc_Qsd8yyiH_tCtymN39O6EZ0DT_wxYHmlKLllxC00,605
77
77
  gllm_inference/schema/lm_output.pyi,sha256=GafJV0KeD-VSwWkwG1oz-uruXrQ7KDZTuoojPCBRpg8,1956
@@ -86,8 +86,8 @@ gllm_inference/utils/__init__.pyi,sha256=npmBmmlBv7cPHMg1hdL3S2_RelD6vk_LhCsGELh
86
86
  gllm_inference/utils/langchain.pyi,sha256=VluQiHkGigDdqLUbhB6vnXiISCP5hHqV0qokYY6dC1A,1164
87
87
  gllm_inference/utils/validation.pyi,sha256=toxBtRp-VItC_X7sNi-GDd7sjibBdWMrR0q01OI2D7k,385
88
88
  gllm_inference.build/.gitignore,sha256=aEiIwOuxfzdCmLZe4oB1JsBmCUxwG8x-u-HBCV9JT8E,1
89
- gllm_inference.cpython-311-x86_64-linux-gnu.so,sha256=fIpzSDtAjDnhcdSEP_FHICP9Q65U2X8vuPk8LNrEGYc,3707488
89
+ gllm_inference.cpython-311-x86_64-linux-gnu.so,sha256=ngIevdVbROV2cRnoZ1P_vvP0D5985sJFAzc1944-m6s,3707488
90
90
  gllm_inference.pyi,sha256=VEcscbPCJ-6lXU4jV3YYXwwumk9kWxpCAsS84ssKG6o,3295
91
- gllm_inference_binary-0.5.3.dist-info/METADATA,sha256=LQwhpH5UQfLEnYFCD2FxH_0CbhikVjdAD2-LGn33yBk,4531
92
- gllm_inference_binary-0.5.3.dist-info/WHEEL,sha256=IFe_ZNdNTT_i6vUiBlaFC_vwJqKup8CcDJ489_L8YrY,110
93
- gllm_inference_binary-0.5.3.dist-info/RECORD,,
91
+ gllm_inference_binary-0.5.4.dist-info/METADATA,sha256=pDdTHJqMvgTxEDuOVk85fsZsvKVBbUaLd-QB7J-jRVM,4531
92
+ gllm_inference_binary-0.5.4.dist-info/WHEEL,sha256=IFe_ZNdNTT_i6vUiBlaFC_vwJqKup8CcDJ489_L8YrY,110
93
+ gllm_inference_binary-0.5.4.dist-info/RECORD,,