opengradient 0.3.28__tar.gz → 0.3.29__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 (32) hide show
  1. {opengradient-0.3.28/src/opengradient.egg-info → opengradient-0.3.29}/PKG-INFO +1 -1
  2. {opengradient-0.3.28 → opengradient-0.3.29}/pyproject.toml +1 -1
  3. {opengradient-0.3.28 → opengradient-0.3.29}/src/opengradient/client.py +4 -2
  4. {opengradient-0.3.28 → opengradient-0.3.29/src/opengradient.egg-info}/PKG-INFO +1 -1
  5. {opengradient-0.3.28 → opengradient-0.3.29}/LICENSE +0 -0
  6. {opengradient-0.3.28 → opengradient-0.3.29}/MANIFEST.in +0 -0
  7. {opengradient-0.3.28 → opengradient-0.3.29}/README.md +0 -0
  8. {opengradient-0.3.28 → opengradient-0.3.29}/setup.cfg +0 -0
  9. {opengradient-0.3.28 → opengradient-0.3.29}/src/opengradient/__init__.py +0 -0
  10. {opengradient-0.3.28 → opengradient-0.3.29}/src/opengradient/abi/ModelExecutorHistorical.abi +0 -0
  11. {opengradient-0.3.28 → opengradient-0.3.29}/src/opengradient/abi/inference.abi +0 -0
  12. {opengradient-0.3.28 → opengradient-0.3.29}/src/opengradient/account.py +0 -0
  13. {opengradient-0.3.28 → opengradient-0.3.29}/src/opengradient/cli.py +0 -0
  14. {opengradient-0.3.28 → opengradient-0.3.29}/src/opengradient/contracts/templates/ModelExecutorHistorical.bin +0 -0
  15. {opengradient-0.3.28 → opengradient-0.3.29}/src/opengradient/defaults.py +0 -0
  16. {opengradient-0.3.28 → opengradient-0.3.29}/src/opengradient/exceptions.py +0 -0
  17. {opengradient-0.3.28 → opengradient-0.3.29}/src/opengradient/llm/__init__.py +0 -0
  18. {opengradient-0.3.28 → opengradient-0.3.29}/src/opengradient/llm/og_langchain.py +0 -0
  19. {opengradient-0.3.28 → opengradient-0.3.29}/src/opengradient/llm/og_openai.py +0 -0
  20. {opengradient-0.3.28 → opengradient-0.3.29}/src/opengradient/mltools/__init__.py +0 -0
  21. {opengradient-0.3.28 → opengradient-0.3.29}/src/opengradient/mltools/model_tool.py +0 -0
  22. {opengradient-0.3.28 → opengradient-0.3.29}/src/opengradient/proto/__init__.py +0 -0
  23. {opengradient-0.3.28 → opengradient-0.3.29}/src/opengradient/proto/infer.proto +0 -0
  24. {opengradient-0.3.28 → opengradient-0.3.29}/src/opengradient/proto/infer_pb2.py +0 -0
  25. {opengradient-0.3.28 → opengradient-0.3.29}/src/opengradient/proto/infer_pb2_grpc.py +0 -0
  26. {opengradient-0.3.28 → opengradient-0.3.29}/src/opengradient/types.py +0 -0
  27. {opengradient-0.3.28 → opengradient-0.3.29}/src/opengradient/utils.py +0 -0
  28. {opengradient-0.3.28 → opengradient-0.3.29}/src/opengradient.egg-info/SOURCES.txt +0 -0
  29. {opengradient-0.3.28 → opengradient-0.3.29}/src/opengradient.egg-info/dependency_links.txt +0 -0
  30. {opengradient-0.3.28 → opengradient-0.3.29}/src/opengradient.egg-info/entry_points.txt +0 -0
  31. {opengradient-0.3.28 → opengradient-0.3.29}/src/opengradient.egg-info/requires.txt +0 -0
  32. {opengradient-0.3.28 → opengradient-0.3.29}/src/opengradient.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: opengradient
3
- Version: 0.3.28
3
+ Version: 0.3.29
4
4
  Summary: Python SDK for OpenGradient decentralized model management & inference services
5
5
  Author-email: OpenGradient <oliver@opengradient.ai>
6
6
  License: MIT License
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "opengradient"
7
- version = "0.3.28"
7
+ version = "0.3.29"
8
8
  description = "Python SDK for OpenGradient decentralized model management & inference services"
9
9
  authors = [{name = "OpenGradient", email = "oliver@opengradient.ai"}]
10
10
  license = {file = "LICENSE"}
@@ -918,8 +918,10 @@ def run_with_retry(txn_function, max_retries=DEFAULT_MAX_RETRY, retry_delay=DEFA
918
918
  """
919
919
  NONCE_TOO_LOW = 'nonce too low'
920
920
  NONCE_TOO_HIGH = 'nonce too high'
921
+
922
+ effective_retries = max_retries if max_retries is not None else DEFAULT_MAX_RETRY
921
923
 
922
- for attempt in range(max_retries):
924
+ for attempt in range(effective_retries):
923
925
  try:
924
926
  return txn_function()
925
927
  except Exception as e:
@@ -927,7 +929,7 @@ def run_with_retry(txn_function, max_retries=DEFAULT_MAX_RETRY, retry_delay=DEFA
927
929
 
928
930
  if NONCE_TOO_LOW in error_msg or NONCE_TOO_HIGH in error_msg:
929
931
  if attempt == max_retries - 1:
930
- raise OpenGradientError(f"Transaction failed after {max_retries} attempts: {e}")
932
+ raise OpenGradientError(f"Transaction failed after {effective_retries} attempts: {e}")
931
933
  time.sleep(retry_delay)
932
934
  continue
933
935
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: opengradient
3
- Version: 0.3.28
3
+ Version: 0.3.29
4
4
  Summary: Python SDK for OpenGradient decentralized model management & inference services
5
5
  Author-email: OpenGradient <oliver@opengradient.ai>
6
6
  License: MIT License
File without changes
File without changes
File without changes
File without changes