gllm-inference-binary 0.4.55__cp311-cp311-macosx_13_0_x86_64.whl → 0.4.56__cp311-cp311-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.

@@ -1,11 +1,15 @@
1
1
  from _typeshed import Incomplete
2
2
  from gllm_core.event import EventEmitter as EventEmitter
3
3
  from gllm_core.utils.retry import RetryConfig as RetryConfig
4
+ from gllm_inference.constants import ALL_EXTENSIONS as ALL_EXTENSIONS, DOCUMENT_MIME_TYPES as DOCUMENT_MIME_TYPES
4
5
  from gllm_inference.lm_invoker.openai_compatible_lm_invoker import OpenAICompatibleLMInvoker as OpenAICompatibleLMInvoker
5
- from gllm_inference.schema import LMOutput as LMOutput, ModelId as ModelId, ModelProvider as ModelProvider, MultimodalPrompt as MultimodalPrompt, ResponseSchema as ResponseSchema, ToolCall as ToolCall, ToolResult as ToolResult
6
+ from gllm_inference.lm_invoker.schema.datasaur import InputType as InputType, Key as Key
7
+ from gllm_inference.schema import Attachment as Attachment, AttachmentType as AttachmentType, LMOutput as LMOutput, ModelId as ModelId, ModelProvider as ModelProvider, MultimodalPrompt as MultimodalPrompt, ResponseSchema as ResponseSchema, ToolCall as ToolCall, ToolResult as ToolResult
6
8
  from langchain_core.tools import Tool as Tool
7
9
  from typing import Any
8
10
 
11
+ VALID_EXTENSIONS_MAP: Incomplete
12
+
9
13
  class DatasaurLMInvoker(OpenAICompatibleLMInvoker):
10
14
  '''A language model invoker to interact with Datasaur LLM Projects Deployment API.
11
15
 
@@ -32,6 +36,7 @@ class DatasaurLMInvoker(OpenAICompatibleLMInvoker):
32
36
  1. Text.
33
37
  2. Audio, with extensions depending on the language model\'s capabilities.
34
38
  3. Image, with extensions depending on the language model\'s capabilities.
39
+ 4. Document, with extensions depending on the language model\'s capabilities.
35
40
  Non-text inputs must be of valid file extensions and can be passed as an `Attachment` object.
36
41
 
37
42
  Non-text inputs can only be passed with the `user` role.
@@ -1,11 +1,14 @@
1
1
  from _typeshed import Incomplete
2
2
  from gllm_core.event import EventEmitter as EventEmitter
3
3
  from gllm_core.utils.retry import RetryConfig as RetryConfig
4
+ from gllm_inference.constants import ALL_EXTENSIONS as ALL_EXTENSIONS
4
5
  from gllm_inference.lm_invoker.openai_compatible_lm_invoker import OpenAICompatibleLMInvoker as OpenAICompatibleLMInvoker
5
- from gllm_inference.schema import ModelId as ModelId, ModelProvider as ModelProvider, MultimodalOutput as MultimodalOutput, ResponseSchema as ResponseSchema
6
+ from gllm_inference.schema import AttachmentType as AttachmentType, ModelId as ModelId, ModelProvider as ModelProvider, MultimodalOutput as MultimodalOutput, ResponseSchema as ResponseSchema
6
7
  from langchain_core.tools import Tool as Tool
7
8
  from typing import Any
8
9
 
10
+ VALID_EXTENSIONS_MAP: Incomplete
11
+
9
12
  class LiteLLMLMInvoker(OpenAICompatibleLMInvoker):
10
13
  '''A language model invoker to interact with language models using LiteLLM.
11
14
 
@@ -0,0 +1,8 @@
1
+ class Key:
2
+ """Defines valid keys in Datasaur."""
3
+ TYPE: str
4
+ URL: str
5
+
6
+ class InputType:
7
+ """Defines valid input types in Datasaur."""
8
+ URL: str
Binary file
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: gllm-inference-binary
3
- Version: 0.4.55
3
+ Version: 0.4.56
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
@@ -36,18 +36,19 @@ gllm_inference/lm_invoker/__init__.pyi,sha256=po1obB6fHrJkdoeNSGYWx2ftUE5UeWv9ki
36
36
  gllm_inference/lm_invoker/anthropic_lm_invoker.pyi,sha256=hZCVbt87cEGAeb2bzhV5tf_rH7M9zYcxrqJ0xpI1OMs,16665
37
37
  gllm_inference/lm_invoker/azure_openai_lm_invoker.pyi,sha256=IxwWpqZTngg2w0BRqpQjImYzx64YaYfdUVd1U9kGcA8,15374
38
38
  gllm_inference/lm_invoker/bedrock_lm_invoker.pyi,sha256=Hqs8Rryu6oGefCZGQ8iENV9OyxaP1A5L66lWnOo4xdk,12725
39
- gllm_inference/lm_invoker/datasaur_lm_invoker.pyi,sha256=aFspW_lnGEkTANNa8omc5GRGKVEgo_vJRFTXIntRxe4,9065
39
+ gllm_inference/lm_invoker/datasaur_lm_invoker.pyi,sha256=GAZUj8vBY-3LxL2PjM1xUpY_0AaZRtwzfb537j9I0gc,9448
40
40
  gllm_inference/lm_invoker/google_generativeai_lm_invoker.pyi,sha256=YIGzX4EFuVKhOUd20UIyaNV_qlVedZi73C3iOhnb_Uo,3899
41
41
  gllm_inference/lm_invoker/google_lm_invoker.pyi,sha256=yNIocjnM8FpnrRIM5mDTnTYqEXKX6AaJfRFBA9LT4wI,17535
42
42
  gllm_inference/lm_invoker/google_vertexai_lm_invoker.pyi,sha256=BC3uWeYxxQyzoDOlDACL6zqYi16BtoO581TJYMrbqCk,4271
43
43
  gllm_inference/lm_invoker/langchain_lm_invoker.pyi,sha256=tkFHv7zxz-SfA0zrtkil_WH4iLRgj5xwkeN4vJdnTyo,14315
44
- gllm_inference/lm_invoker/litellm_lm_invoker.pyi,sha256=GH8LRC975W6uWMhZ0C4hUPmyI3b2CXlN-7tkoz1Sli4,10760
44
+ gllm_inference/lm_invoker/litellm_lm_invoker.pyi,sha256=g2yVUlTo21H9ieWYREUyDjO82eWSUAuidnE8VJXVvRs,10898
45
45
  gllm_inference/lm_invoker/lm_invoker.pyi,sha256=aMgai33nvs3LZDRnUSIqch1enkmA-2twx5wMPSxjuUY,7970
46
46
  gllm_inference/lm_invoker/openai_compatible_lm_invoker.pyi,sha256=BpomU9onejDtZMObQk2BJZhinZLbA0aF5D5w8FXSHXM,13229
47
47
  gllm_inference/lm_invoker/openai_lm_invoker.pyi,sha256=zvJyOM2pEJOEtPtlqSL9-3fKE9GtzPm6Wqw0Upysshg,20158
48
48
  gllm_inference/lm_invoker/schema/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
49
49
  gllm_inference/lm_invoker/schema/anthropic.pyi,sha256=Y7NAjB7H0Wmiwv3YGZuG83K1rOCjSDB6hoZ6LjndWss,971
50
50
  gllm_inference/lm_invoker/schema/bedrock.pyi,sha256=FOUMZkBi6KRa__mYoy3FNJ5sP0EC6rgLuhoijnwelIg,927
51
+ gllm_inference/lm_invoker/schema/datasaur.pyi,sha256=mEfrhYbwVmb1jA7UIwPBqtosqp_OIQCS4z1BUJMN1OE,160
51
52
  gllm_inference/lm_invoker/schema/google.pyi,sha256=ZwEAo30lif7v1EgpwmKng6rzCPxPyUypyKBYkvLjJJE,443
52
53
  gllm_inference/lm_invoker/schema/langchain.pyi,sha256=-0JIiMFofXoHDoMtpaFUOysvrPGJBvjDFcNeomnWTSY,371
53
54
  gllm_inference/lm_invoker/schema/openai.pyi,sha256=YogOvOZqPuWkNyfcvyzaxi-Bu7UMfcoRzk4gWtkPG08,1899
@@ -97,8 +98,8 @@ gllm_inference/utils/openai_multimodal_lm_helper.pyi,sha256=eF3MVWpQOyu_oYdHRWpR
97
98
  gllm_inference/utils/retry.pyi,sha256=PVDHBDWfWj9Frvl0yf5X6nqI6oromc35LvOs-jDk3So,76
98
99
  gllm_inference/utils/utils.pyi,sha256=px3RqfrgMTR_IvC2byKjSkNSrvE9_80nIe5UUw-d09s,6017
99
100
  gllm_inference.build/.gitignore,sha256=aEiIwOuxfzdCmLZe4oB1JsBmCUxwG8x-u-HBCV9JT8E,1
100
- gllm_inference.cpython-311-darwin.so,sha256=b-KfykeL9z8i3XrAep1y6yWFluecI4ae0jOoqCupgXU,4818608
101
+ gllm_inference.cpython-311-darwin.so,sha256=UmwNs6dHOAC9IyDMWIksN_pirYFvdeyeFNb7cizEKzs,4838688
101
102
  gllm_inference.pyi,sha256=RXY-iU4LtaxXcr06kRZpT9i9hRw_C65c51U-PAHH6go,4985
102
- gllm_inference_binary-0.4.55.dist-info/METADATA,sha256=77MthLJ3TMrBQDHNr4A3dIwPr_SbC7MD73ZJj6TVNcw,4917
103
- gllm_inference_binary-0.4.55.dist-info/WHEEL,sha256=r3EiIdyNg8wC0u2K9wWWq7Elb6S4XGGmkyBqljSOtNU,107
104
- gllm_inference_binary-0.4.55.dist-info/RECORD,,
103
+ gllm_inference_binary-0.4.56.dist-info/METADATA,sha256=3YCUKrCoTN-LYD8t9XOXXYX_YTTHLjS4PnUHupxSsOQ,4917
104
+ gllm_inference_binary-0.4.56.dist-info/WHEEL,sha256=r3EiIdyNg8wC0u2K9wWWq7Elb6S4XGGmkyBqljSOtNU,107
105
+ gllm_inference_binary-0.4.56.dist-info/RECORD,,