tamar-model-client 0.1.4__tar.gz → 0.1.5__tar.gz

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.
Files changed (24) hide show
  1. {tamar_model_client-0.1.4 → tamar_model_client-0.1.5}/PKG-INFO +1 -1
  2. {tamar_model_client-0.1.4 → tamar_model_client-0.1.5}/setup.py +1 -1
  3. {tamar_model_client-0.1.4 → tamar_model_client-0.1.5}/tamar_model_client/async_client.py +8 -1
  4. {tamar_model_client-0.1.4 → tamar_model_client-0.1.5}/tamar_model_client.egg-info/PKG-INFO +1 -1
  5. {tamar_model_client-0.1.4 → tamar_model_client-0.1.5}/README.md +0 -0
  6. {tamar_model_client-0.1.4 → tamar_model_client-0.1.5}/setup.cfg +0 -0
  7. {tamar_model_client-0.1.4 → tamar_model_client-0.1.5}/tamar_model_client/__init__.py +0 -0
  8. {tamar_model_client-0.1.4 → tamar_model_client-0.1.5}/tamar_model_client/auth.py +0 -0
  9. {tamar_model_client-0.1.4 → tamar_model_client-0.1.5}/tamar_model_client/enums/__init__.py +0 -0
  10. {tamar_model_client-0.1.4 → tamar_model_client-0.1.5}/tamar_model_client/enums/channel.py +0 -0
  11. {tamar_model_client-0.1.4 → tamar_model_client-0.1.5}/tamar_model_client/enums/invoke.py +0 -0
  12. {tamar_model_client-0.1.4 → tamar_model_client-0.1.5}/tamar_model_client/enums/providers.py +0 -0
  13. {tamar_model_client-0.1.4 → tamar_model_client-0.1.5}/tamar_model_client/exceptions.py +0 -0
  14. {tamar_model_client-0.1.4 → tamar_model_client-0.1.5}/tamar_model_client/generated/__init__.py +0 -0
  15. {tamar_model_client-0.1.4 → tamar_model_client-0.1.5}/tamar_model_client/generated/model_service_pb2.py +0 -0
  16. {tamar_model_client-0.1.4 → tamar_model_client-0.1.5}/tamar_model_client/generated/model_service_pb2_grpc.py +0 -0
  17. {tamar_model_client-0.1.4 → tamar_model_client-0.1.5}/tamar_model_client/schemas/__init__.py +0 -0
  18. {tamar_model_client-0.1.4 → tamar_model_client-0.1.5}/tamar_model_client/schemas/inputs.py +0 -0
  19. {tamar_model_client-0.1.4 → tamar_model_client-0.1.5}/tamar_model_client/schemas/outputs.py +0 -0
  20. {tamar_model_client-0.1.4 → tamar_model_client-0.1.5}/tamar_model_client/sync_client.py +0 -0
  21. {tamar_model_client-0.1.4 → tamar_model_client-0.1.5}/tamar_model_client.egg-info/SOURCES.txt +0 -0
  22. {tamar_model_client-0.1.4 → tamar_model_client-0.1.5}/tamar_model_client.egg-info/dependency_links.txt +0 -0
  23. {tamar_model_client-0.1.4 → tamar_model_client-0.1.5}/tamar_model_client.egg-info/requires.txt +0 -0
  24. {tamar_model_client-0.1.4 → tamar_model_client-0.1.5}/tamar_model_client.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tamar-model-client
3
- Version: 0.1.4
3
+ Version: 0.1.5
4
4
  Summary: A Python SDK for interacting with the Model Manager gRPC service
5
5
  Home-page: http://gitlab.tamaredge.top/project-tap/AgentOS/model-manager-client
6
6
  Author: Oscar Ou
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="tamar-model-client",
5
- version="0.1.4",
5
+ version="0.1.5",
6
6
  description="A Python SDK for interacting with the Model Manager gRPC service",
7
7
  author="Oscar Ou",
8
8
  author_email="oscar.ou@tamaredge.ai",
@@ -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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tamar-model-client
3
- Version: 0.1.4
3
+ Version: 0.1.5
4
4
  Summary: A Python SDK for interacting with the Model Manager gRPC service
5
5
  Home-page: http://gitlab.tamaredge.top/project-tap/AgentOS/model-manager-client
6
6
  Author: Oscar Ou