opengradient 0.3.29__tar.gz → 0.4.0__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 (33) hide show
  1. {opengradient-0.3.29/src/opengradient.egg-info → opengradient-0.4.0}/PKG-INFO +1 -1
  2. {opengradient-0.3.29 → opengradient-0.4.0}/pyproject.toml +1 -1
  3. {opengradient-0.3.29 → opengradient-0.4.0}/src/opengradient/cli.py +2 -5
  4. opengradient-0.4.0/src/opengradient/defaults.py +8 -0
  5. {opengradient-0.3.29 → opengradient-0.4.0/src/opengradient.egg-info}/PKG-INFO +1 -1
  6. opengradient-0.3.29/src/opengradient/defaults.py +0 -8
  7. {opengradient-0.3.29 → opengradient-0.4.0}/LICENSE +0 -0
  8. {opengradient-0.3.29 → opengradient-0.4.0}/MANIFEST.in +0 -0
  9. {opengradient-0.3.29 → opengradient-0.4.0}/README.md +0 -0
  10. {opengradient-0.3.29 → opengradient-0.4.0}/setup.cfg +0 -0
  11. {opengradient-0.3.29 → opengradient-0.4.0}/src/opengradient/__init__.py +0 -0
  12. {opengradient-0.3.29 → opengradient-0.4.0}/src/opengradient/abi/ModelExecutorHistorical.abi +0 -0
  13. {opengradient-0.3.29 → opengradient-0.4.0}/src/opengradient/abi/inference.abi +0 -0
  14. {opengradient-0.3.29 → opengradient-0.4.0}/src/opengradient/account.py +0 -0
  15. {opengradient-0.3.29 → opengradient-0.4.0}/src/opengradient/client.py +0 -0
  16. {opengradient-0.3.29 → opengradient-0.4.0}/src/opengradient/contracts/templates/ModelExecutorHistorical.bin +0 -0
  17. {opengradient-0.3.29 → opengradient-0.4.0}/src/opengradient/exceptions.py +0 -0
  18. {opengradient-0.3.29 → opengradient-0.4.0}/src/opengradient/llm/__init__.py +0 -0
  19. {opengradient-0.3.29 → opengradient-0.4.0}/src/opengradient/llm/og_langchain.py +0 -0
  20. {opengradient-0.3.29 → opengradient-0.4.0}/src/opengradient/llm/og_openai.py +0 -0
  21. {opengradient-0.3.29 → opengradient-0.4.0}/src/opengradient/mltools/__init__.py +0 -0
  22. {opengradient-0.3.29 → opengradient-0.4.0}/src/opengradient/mltools/model_tool.py +0 -0
  23. {opengradient-0.3.29 → opengradient-0.4.0}/src/opengradient/proto/__init__.py +0 -0
  24. {opengradient-0.3.29 → opengradient-0.4.0}/src/opengradient/proto/infer.proto +0 -0
  25. {opengradient-0.3.29 → opengradient-0.4.0}/src/opengradient/proto/infer_pb2.py +0 -0
  26. {opengradient-0.3.29 → opengradient-0.4.0}/src/opengradient/proto/infer_pb2_grpc.py +0 -0
  27. {opengradient-0.3.29 → opengradient-0.4.0}/src/opengradient/types.py +0 -0
  28. {opengradient-0.3.29 → opengradient-0.4.0}/src/opengradient/utils.py +0 -0
  29. {opengradient-0.3.29 → opengradient-0.4.0}/src/opengradient.egg-info/SOURCES.txt +0 -0
  30. {opengradient-0.3.29 → opengradient-0.4.0}/src/opengradient.egg-info/dependency_links.txt +0 -0
  31. {opengradient-0.3.29 → opengradient-0.4.0}/src/opengradient.egg-info/entry_points.txt +0 -0
  32. {opengradient-0.3.29 → opengradient-0.4.0}/src/opengradient.egg-info/requires.txt +0 -0
  33. {opengradient-0.3.29 → opengradient-0.4.0}/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.29
3
+ Version: 0.4.0
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.29"
7
+ version = "0.4.0"
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"}
@@ -101,9 +101,6 @@ def initialize_config(ctx):
101
101
  )
102
102
  ctx.obj["password"] = password if password else None
103
103
 
104
- ctx.obj["rpc_url"] = DEFAULT_RPC_URL
105
- ctx.obj["contract_address"] = DEFAULT_INFERENCE_CONTRACT_ADDRESS
106
-
107
104
  save_og_config(ctx)
108
105
  click.echo("Config has been saved.")
109
106
  click.secho("You can run 'opengradient config show' to see configs.", fg="green")
@@ -128,11 +125,11 @@ def cli(ctx):
128
125
  if ctx.invoked_subcommand in no_client_commands:
129
126
  return
130
127
 
131
- if all(key in ctx.obj for key in ["private_key", "rpc_url", "contract_address"]):
128
+ if all(key in ctx.obj for key in ["private_key"]):
132
129
  try:
133
130
  ctx.obj["client"] = Client(
134
131
  private_key=ctx.obj["private_key"],
135
- rpc_url=ctx.obj["rpc_url"],
132
+ rpc_url=DEFAULT_RPC_URL,
136
133
  contract_address=DEFAULT_INFERENCE_CONTRACT_ADDRESS,
137
134
  email=ctx.obj.get("email"),
138
135
  password=ctx.obj.get("password"),
@@ -0,0 +1,8 @@
1
+ # Default variables
2
+ DEFAULT_RPC_URL="http://18.188.176.119:8545"
3
+ DEFAULT_OG_FAUCET_URL="https://faucet.opengradient.ai/?address="
4
+ DEFAULT_HUB_SIGNUP_URL="https://hub.opengradient.ai/signup"
5
+ DEFAULT_INFERENCE_CONTRACT_ADDRESS="0x8383C9bD7462F12Eb996DD02F78234C0421A6FaE"
6
+ DEFAULT_BLOCKCHAIN_EXPLORER="https://explorer.opengradient.ai/tx/"
7
+ DEFAULT_IMAGE_GEN_HOST="18.217.25.69"
8
+ DEFAULT_IMAGE_GEN_PORT=5125
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: opengradient
3
- Version: 0.3.29
3
+ Version: 0.4.0
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
@@ -1,8 +0,0 @@
1
- # Default variables
2
- DEFAULT_RPC_URL = "http://18.218.115.248:8545"
3
- DEFAULT_OG_FAUCET_URL = "http://18.218.115.248:8080/?address="
4
- DEFAULT_HUB_SIGNUP_URL = "https://hub.opengradient.ai/signup"
5
- DEFAULT_INFERENCE_CONTRACT_ADDRESS = "0x3fDCb0394CF4919ff4361f4EbA0750cEc2e3bBc7"
6
- DEFAULT_BLOCKCHAIN_EXPLORER = "http://3.145.62.2/tx/"
7
- DEFAULT_IMAGE_GEN_HOST = "18.217.25.69"
8
- DEFAULT_IMAGE_GEN_PORT = 5125
File without changes
File without changes
File without changes
File without changes