gllm-inference-binary 0.4.59__cp313-cp313-macosx_13_0_x86_64.whl → 0.4.60__cp313-cp313-macosx_13_0_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.
Potentially problematic release.
This version of gllm-inference-binary might be problematic. Click here for more details.
- gllm_inference/schema/model_io.pyi +3 -2
- gllm_inference.cpython-313-darwin.so +0 -0
- gllm_inference.pyi +5 -2
- {gllm_inference_binary-0.4.59.dist-info → gllm_inference_binary-0.4.60.dist-info}/METADATA +2 -1
- {gllm_inference_binary-0.4.59.dist-info → gllm_inference_binary-0.4.60.dist-info}/RECORD +6 -6
- {gllm_inference_binary-0.4.59.dist-info → gllm_inference_binary-0.4.60.dist-info}/WHEEL +0 -0
|
@@ -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
|
|
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
|
@@ -136,6 +136,9 @@ import gllm_inference.prompt_formatter.HuggingFacePromptFormatter
|
|
|
136
136
|
import gllm_inference.prompt_formatter.OpenAIPromptFormatter
|
|
137
137
|
import transformers
|
|
138
138
|
import gllm_core.utils.logger_manager
|
|
139
|
+
import mimetypes
|
|
140
|
+
import uuid
|
|
141
|
+
import filetype
|
|
142
|
+
import magic
|
|
139
143
|
import urllib
|
|
140
|
-
import urllib.parse
|
|
141
|
-
import magic
|
|
144
|
+
import urllib.parse
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: gllm-inference-binary
|
|
3
|
-
Version: 0.4.
|
|
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=r0gkbtDG1MC1KVF0YxGV-s
|
|
|
100
100
|
gllm_inference/schema/__init__.pyi,sha256=B31fohfsVVUtI4Zz_fmZJr9bP_rSFwG2-UQMuaLBQds,1188
|
|
101
101
|
gllm_inference/schema/enums.pyi,sha256=KJ2fLoyviuz5ZDPzbpxfmWVUgxX0dF0w7V3V2nj3lac,603
|
|
102
102
|
gllm_inference/schema/model_id.pyi,sha256=cZ8_UNiA-3WhEdJeO4aHaTIW9pm50trQe_9hE6V6IEQ,5236
|
|
103
|
-
gllm_inference/schema/model_io.pyi,sha256=
|
|
103
|
+
gllm_inference/schema/model_io.pyi,sha256=TZjcX3-_w6w4CCny5yyzhUbmblV7svTHk6P6TlKgoVs,6854
|
|
104
104
|
gllm_inference/schema/type_alias.pyi,sha256=PxQT50eVe370q_T-6WucHc7jOmKX6h4cZfvrG7JO_vg,971
|
|
105
105
|
gllm_inference/utils/__init__.pyi,sha256=2GKVKCMCh1Gc-oC7scNhD2chHdvmSxr1WBU6AkE2ANw,1135
|
|
106
106
|
gllm_inference/utils/langchain.pyi,sha256=VluQiHkGigDdqLUbhB6vnXiISCP5hHqV0qokYY6dC1A,1164
|
|
@@ -108,8 +108,8 @@ gllm_inference/utils/openai_multimodal_lm_helper.pyi,sha256=eF3MVWpQOyu_oYdHRWpR
|
|
|
108
108
|
gllm_inference/utils/retry.pyi,sha256=PVDHBDWfWj9Frvl0yf5X6nqI6oromc35LvOs-jDk3So,76
|
|
109
109
|
gllm_inference/utils/utils.pyi,sha256=px3RqfrgMTR_IvC2byKjSkNSrvE9_80nIe5UUw-d09s,6017
|
|
110
110
|
gllm_inference.build/.gitignore,sha256=aEiIwOuxfzdCmLZe4oB1JsBmCUxwG8x-u-HBCV9JT8E,1
|
|
111
|
-
gllm_inference.cpython-313-darwin.so,sha256=
|
|
112
|
-
gllm_inference.pyi,sha256=
|
|
113
|
-
gllm_inference_binary-0.4.
|
|
114
|
-
gllm_inference_binary-0.4.
|
|
115
|
-
gllm_inference_binary-0.4.
|
|
111
|
+
gllm_inference.cpython-313-darwin.so,sha256=dtT1vFgXuFq_oC_sp-2xzPfSK-ueOIAfyvDKOUBpsm8,4885640
|
|
112
|
+
gllm_inference.pyi,sha256=U8ZHrNyDfYAAEMXVFrCFSuf6o6NSuxcJBnMnnMTf330,5050
|
|
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=PCOZcL_jcbAVhuFR5ylE4Mr-7HPGHAcfJk9OpuMh7RQ,107
|
|
115
|
+
gllm_inference_binary-0.4.60.dist-info/RECORD,,
|
|
File without changes
|