gllm-inference-binary 0.4.59__cp311-cp311-win_amd64.whl → 0.4.60__cp311-cp311-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.

@@ -1,7 +1,6 @@
1
1
  from _typeshed import Incomplete
2
2
  from gllm_core.schema import Chunk as Chunk
3
3
  from gllm_inference.constants import DEFAULT_CONTENT_PLACEHOLDER_TYPE as DEFAULT_CONTENT_PLACEHOLDER_TYPE, HEX_REPR_LENGTH as HEX_REPR_LENGTH
4
- from gllm_inference.utils import get_mime_type as get_mime_type
5
4
  from pydantic import BaseModel
6
5
  from typing import Any
7
6
 
@@ -14,11 +13,13 @@ class Attachment(BaseModel):
14
13
  data (bytes): The content data of the file attachment.
15
14
  filename (str): The filename of the file attachment.
16
15
  mime_type (str): The mime type of the file attachment.
16
+ extension (str): The extension of the file attachment.
17
17
  url (str | None): The URL of the file attachment. Defaults to None.
18
18
  """
19
19
  data: bytes
20
20
  filename: str
21
21
  mime_type: str
22
+ extension: str
22
23
  url: str | None
23
24
  @classmethod
24
25
  def from_bytes(cls, bytes: bytes, filename: str | None = None) -> Attachment:
@@ -27,7 +28,7 @@ class Attachment(BaseModel):
27
28
  Args:
28
29
  bytes (bytes): The bytes of the file.
29
30
  filename (str | None, optional): The filename of the file. Defaults to None,
30
- in which case the filename will be derived from the mime type.
31
+ in which case the filename will be derived from the extension.
31
32
 
32
33
  Returns:
33
34
  Attachment: The instantiated Attachment.
Binary file
gllm_inference.pyi CHANGED
@@ -135,6 +135,9 @@ import gllm_inference.prompt_formatter.HuggingFacePromptFormatter
135
135
  import gllm_inference.prompt_formatter.OpenAIPromptFormatter
136
136
  import transformers
137
137
  import gllm_core.utils.logger_manager
138
+ import mimetypes
139
+ import uuid
140
+ import filetype
141
+ import magic
138
142
  import urllib
139
- import urllib.parse
140
- import magic
143
+ import urllib.parse
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: gllm-inference-binary
3
- Version: 0.4.59
3
+ Version: 0.4.60
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
@@ -22,6 +22,7 @@ Provides-Extra: voyage
22
22
  Requires-Dist: aioboto3 (>=15.0.0,<16.0.0) ; extra == "bedrock"
23
23
  Requires-Dist: aiohttp (>=3.12.14,<4.0.0)
24
24
  Requires-Dist: anthropic (>=0.60.0,<0.61.0) ; extra == "anthropic"
25
+ Requires-Dist: filetype (>=1.2.0,<2.0.0)
25
26
  Requires-Dist: gllm-core-binary (>=0.3.0,<0.4.0)
26
27
  Requires-Dist: google-genai (==1.20.0) ; extra == "google"
27
28
  Requires-Dist: httpx (>=0.28.0,<0.29.0)
@@ -100,7 +100,7 @@ gllm_inference/request_processor/uses_lm_mixin.pyi,sha256=FZv4I0Jg06C4VfGSBWqYD_
100
100
  gllm_inference/schema/__init__.pyi,sha256=JpJm5c2gMIeygc7hz8X64IystFLafW2wKYuBl2G1xcs,1194
101
101
  gllm_inference/schema/enums.pyi,sha256=sNUMCJZCaA29GVNCva_5zLcWPXWofge-Hxl8gyuU1D8,627
102
102
  gllm_inference/schema/model_id.pyi,sha256=6I1ig2PNYu9Hb4gkv5ZoIqmJQwclxzSXygKzGqJ07UA,5374
103
- gllm_inference/schema/model_io.pyi,sha256=kEQUGUlI3Sm5iz5ApG5ACxil4joPlCpFQdm5BGg_msM,7013
103
+ gllm_inference/schema/model_io.pyi,sha256=j2G6I8146x2vIJxfAeuovD65DUecona_HYlwDOvli1Q,7032
104
104
  gllm_inference/schema/type_alias.pyi,sha256=gV0v62nywNtty69KAtjaFC7IH1KPU-PmoFV6a7nZ3fA,988
105
105
  gllm_inference/utils/__init__.pyi,sha256=zbsTZ2vP2nJR5af8W7wm84tYprdpSVj1RIcogOuPboU,1140
106
106
  gllm_inference/utils/langchain.pyi,sha256=4AwFiVAO0ZpdgmqeC4Pb5NJwBt8vVr0MSUqLeCdTscc,1194
@@ -108,8 +108,8 @@ gllm_inference/utils/openai_multimodal_lm_helper.pyi,sha256=oolyuXA5S9Njft6E15Th
108
108
  gllm_inference/utils/retry.pyi,sha256=gEHkFUmzX8CCkvFrXPYhFuoZ_iq0a210TBiRU88ZHbA,80
109
109
  gllm_inference/utils/utils.pyi,sha256=N1fum4TLEsIYsdnK8y6fVxDDF5WT_MnLP9FSJUsjcGQ,6159
110
110
  gllm_inference.build/.gitignore,sha256=aEiIwOuxfzdCmLZe4oB1JsBmCUxwG8x-u-HBCV9JT8E,1
111
- gllm_inference.cp311-win_amd64.pyd,sha256=Y8keb1pvrE_Z2Obz7zVAubXF43WLA49DnKbjexVW3XA,3473408
112
- gllm_inference.pyi,sha256=RXY-iU4LtaxXcr06kRZpT9i9hRw_C65c51U-PAHH6go,4985
113
- gllm_inference_binary-0.4.59.dist-info/METADATA,sha256=LwMFdou-CWZyPaIbalJ2tWROCXCWHR2v7ItRrZL8LGo,4917
114
- gllm_inference_binary-0.4.59.dist-info/WHEEL,sha256=-FZBVKyKauScY3vLa8vJR6hBCpAJfFykw2MOwlNKr1g,98
115
- gllm_inference_binary-0.4.59.dist-info/RECORD,,
111
+ gllm_inference.cp311-win_amd64.pyd,sha256=cjZaeMu1Jds-tqxIBB9ATYsvoBOM1u0j6ok0flp1Nuc,3479552
112
+ gllm_inference.pyi,sha256=mnf0N8LU2LmMGy8so2ZhT59GqLw5ZGuS4WtvSPO35AQ,5030
113
+ gllm_inference_binary-0.4.60.dist-info/METADATA,sha256=MuTck_lQY3X1xWM_TrW_I79n2mX-lN1YWkil8z0G9v4,4958
114
+ gllm_inference_binary-0.4.60.dist-info/WHEEL,sha256=-FZBVKyKauScY3vLa8vJR6hBCpAJfFykw2MOwlNKr1g,98
115
+ gllm_inference_binary-0.4.60.dist-info/RECORD,,