tamar-model-client 0.1.4__py3-none-any.whl → 0.1.5__py3-none-any.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.
- tamar_model_client/async_client.py +8 -1
- {tamar_model_client-0.1.4.dist-info → tamar_model_client-0.1.5.dist-info}/METADATA +1 -1
- {tamar_model_client-0.1.4.dist-info → tamar_model_client-0.1.5.dist-info}/RECORD +5 -5
- {tamar_model_client-0.1.4.dist-info → tamar_model_client-0.1.5.dist-info}/WHEEL +0 -0
- {tamar_model_client-0.1.4.dist-info → tamar_model_client-0.1.5.dist-info}/top_level.txt +0 -0
@@ -4,6 +4,7 @@ import base64
|
|
4
4
|
import json
|
5
5
|
import logging
|
6
6
|
import os
|
7
|
+
import sys
|
7
8
|
|
8
9
|
import grpc
|
9
10
|
from typing import Optional, AsyncIterator, Union, Iterable
|
@@ -28,6 +29,9 @@ if not logging.getLogger().hasHandlers():
|
|
28
29
|
|
29
30
|
logger = logging.getLogger(__name__)
|
30
31
|
|
32
|
+
# 设置最大消息大小为 sys.maxsize
|
33
|
+
MAX_MESSAGE_LENGTH = sys.maxsize
|
34
|
+
|
31
35
|
|
32
36
|
def is_effective_value(value) -> bool:
|
33
37
|
"""
|
@@ -146,7 +150,10 @@ class AsyncTamarModelClient:
|
|
146
150
|
return
|
147
151
|
|
148
152
|
retry_count = 0
|
149
|
-
options = [
|
153
|
+
options = [
|
154
|
+
('grpc.max_send_message_length', MAX_MESSAGE_LENGTH),
|
155
|
+
('grpc.max_receive_message_length', MAX_MESSAGE_LENGTH),
|
156
|
+
]
|
150
157
|
if self.default_authority:
|
151
158
|
options.append(("grpc.default_authority", self.default_authority))
|
152
159
|
|
@@ -14,7 +14,7 @@ model_manager_client/schemas/__init__.py,sha256=AxuI-TcvA4OMTj2FtK4wAItvz9LrK_29
|
|
14
14
|
model_manager_client/schemas/inputs.py,sha256=3HUxnbuyQbuvMz1C46zydFYz-iEvLAUWVzOx7-eKS_I,14338
|
15
15
|
model_manager_client/schemas/outputs.py,sha256=M_fcqUtXPJnfiLabHlyA8BorlC5pYkf5KLjXO1ysKIQ,1031
|
16
16
|
tamar_model_client/__init__.py,sha256=LMECAuDARWHV1XzH3msoDXcyurS2eihRQmBy26_PUE0,328
|
17
|
-
tamar_model_client/async_client.py,sha256=
|
17
|
+
tamar_model_client/async_client.py,sha256=paPDWgoB9_hvAk4clEG2fNy7TbRaV38Wvb_bm3nWA9g,18899
|
18
18
|
tamar_model_client/auth.py,sha256=gbwW5Aakeb49PMbmYvrYlVx1mfyn1LEDJ4qQVs-9DA4,438
|
19
19
|
tamar_model_client/exceptions.py,sha256=jYU494OU_NeIa4X393V-Y73mTNm0JZ9yZApnlOM9CJQ,332
|
20
20
|
tamar_model_client/sync_client.py,sha256=o8b20fQUvtMq1gWax3_dfOpputYT4l9pRTz6cHdB0lg,4006
|
@@ -28,7 +28,7 @@ tamar_model_client/generated/model_service_pb2_grpc.py,sha256=KW1UEGUim_kmSi_fCI
|
|
28
28
|
tamar_model_client/schemas/__init__.py,sha256=AxuI-TcvA4OMTj2FtK4wAItvz9LrK_293pu3cmMLE7k,394
|
29
29
|
tamar_model_client/schemas/inputs.py,sha256=Y9zzt-RoRklkxxe_3VJbZvPghJ00KUjHtFUmD0pCdHs,18721
|
30
30
|
tamar_model_client/schemas/outputs.py,sha256=M_fcqUtXPJnfiLabHlyA8BorlC5pYkf5KLjXO1ysKIQ,1031
|
31
|
-
tamar_model_client-0.1.
|
32
|
-
tamar_model_client-0.1.
|
33
|
-
tamar_model_client-0.1.
|
34
|
-
tamar_model_client-0.1.
|
31
|
+
tamar_model_client-0.1.5.dist-info/METADATA,sha256=XNZ2S9Cn0TFjYryxlgAknDfpAybEDW8e1swZ3VEGm3o,16608
|
32
|
+
tamar_model_client-0.1.5.dist-info/WHEEL,sha256=ck4Vq1_RXyvS4Jt6SI0Vz6fyVs4GWg7AINwpsaGEgPE,91
|
33
|
+
tamar_model_client-0.1.5.dist-info/top_level.txt,sha256=_LfDhPv_fvON0PoZgQuo4M7EjoWtxPRoQOBJziJmip8,19
|
34
|
+
tamar_model_client-0.1.5.dist-info/RECORD,,
|
File without changes
|
File without changes
|