gllm-inference-binary 0.5.3__cp312-cp312-win_amd64.whl → 0.5.4__cp312-cp312-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.
@@ -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
 
Binary file
@@ -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=giEme2WFQhgyKiBZHhSet0_nKSC
71
71
  gllm_inference/request_processor/lm_request_processor.pyi,sha256=rInXhC95BvQnw9q98KZWpjPH8Q_TV4zC2ycNjypEBZ4,5516
72
72
  gllm_inference/request_processor/uses_lm_mixin.pyi,sha256=znBG4AWWm_H70Qqrc1mO4ohmWotX9id81Fqe-x9Qa6Q,2371
73
73
  gllm_inference/schema/__init__.pyi,sha256=-ldt0xJQJirVNdwLFev3bmzmFRw9HSUWBRmmIVH7uyU,1251
74
- gllm_inference/schema/attachment.pyi,sha256=FML2m4-LZYjBIeQaTwJqrcihGpxboJqEtjs2zqLfrCk,2886
74
+ gllm_inference/schema/attachment.pyi,sha256=9zgAjGXBjLfzPGaKi68FMW6b5mXdEA352nDe-ynOSvY,3385
75
75
  gllm_inference/schema/code_exec_result.pyi,sha256=WQ-ARoGM9r6nyRX-A0Ro1XKiqrc9R3jRYXZpu_xo5S4,573
76
76
  gllm_inference/schema/enums.pyi,sha256=SQ9mXt8j7uK333uUnUHRs-mkRxf0Z5NCtkAkgQZPIb4,629
77
77
  gllm_inference/schema/lm_output.pyi,sha256=WP2LQrY0D03OJtFoaW_dGoJ_-yFUh2HbVlllgjzpYv4,1992
@@ -86,8 +86,8 @@ gllm_inference/utils/__init__.pyi,sha256=RBTWDu1TDPpTd17fixcPYFv2L_vp4-IAOX0Isxg
86
86
  gllm_inference/utils/langchain.pyi,sha256=4AwFiVAO0ZpdgmqeC4Pb5NJwBt8vVr0MSUqLeCdTscc,1194
87
87
  gllm_inference/utils/validation.pyi,sha256=-RdMmb8afH7F7q4Ao7x6FbwaDfxUHn3hA3WiOgzB-3s,397
88
88
  gllm_inference.build/.gitignore,sha256=aEiIwOuxfzdCmLZe4oB1JsBmCUxwG8x-u-HBCV9JT8E,1
89
- gllm_inference.cp312-win_amd64.pyd,sha256=465ZSOcR-ocH-szWUWrx_MMLABlNkW_R1KeqL79Jb3c,2630656
89
+ gllm_inference.cp312-win_amd64.pyd,sha256=pX3w5xHsz0FOpo15AQ39vti-MYdj5cY6rPNoWztht30,2633216
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=4N0hGcnWMI_Ty6ATf4qJqqSl-UNI-Ln828iTWGIywmU,98
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=4N0hGcnWMI_Ty6ATf4qJqqSl-UNI-Ln828iTWGIywmU,98
93
+ gllm_inference_binary-0.5.4.dist-info/RECORD,,