opengradient 0.3.8__tar.gz → 0.3.9__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 (20) hide show
  1. {opengradient-0.3.8/src/opengradient.egg-info → opengradient-0.3.9}/PKG-INFO +1 -1
  2. {opengradient-0.3.8 → opengradient-0.3.9}/pyproject.toml +1 -1
  3. {opengradient-0.3.8 → opengradient-0.3.9}/src/opengradient/__init__.py +1 -1
  4. {opengradient-0.3.8 → opengradient-0.3.9}/src/opengradient/cli.py +3 -4
  5. {opengradient-0.3.8 → opengradient-0.3.9}/src/opengradient/types.py +2 -1
  6. {opengradient-0.3.8 → opengradient-0.3.9/src/opengradient.egg-info}/PKG-INFO +1 -1
  7. {opengradient-0.3.8 → opengradient-0.3.9}/LICENSE +0 -0
  8. {opengradient-0.3.8 → opengradient-0.3.9}/README.md +0 -0
  9. {opengradient-0.3.8 → opengradient-0.3.9}/setup.cfg +0 -0
  10. {opengradient-0.3.8 → opengradient-0.3.9}/src/opengradient/abi/inference.abi +0 -0
  11. {opengradient-0.3.8 → opengradient-0.3.9}/src/opengradient/account.py +0 -0
  12. {opengradient-0.3.8 → opengradient-0.3.9}/src/opengradient/client.py +0 -0
  13. {opengradient-0.3.8 → opengradient-0.3.9}/src/opengradient/defaults.py +0 -0
  14. {opengradient-0.3.8 → opengradient-0.3.9}/src/opengradient/exceptions.py +0 -0
  15. {opengradient-0.3.8 → opengradient-0.3.9}/src/opengradient/utils.py +0 -0
  16. {opengradient-0.3.8 → opengradient-0.3.9}/src/opengradient.egg-info/SOURCES.txt +0 -0
  17. {opengradient-0.3.8 → opengradient-0.3.9}/src/opengradient.egg-info/dependency_links.txt +0 -0
  18. {opengradient-0.3.8 → opengradient-0.3.9}/src/opengradient.egg-info/entry_points.txt +0 -0
  19. {opengradient-0.3.8 → opengradient-0.3.9}/src/opengradient.egg-info/requires.txt +0 -0
  20. {opengradient-0.3.8 → opengradient-0.3.9}/src/opengradient.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: opengradient
3
- Version: 0.3.8
3
+ Version: 0.3.9
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.8"
7
+ version = "0.3.9"
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"}
@@ -4,7 +4,7 @@ from .client import Client
4
4
  from .defaults import DEFAULT_INFERENCE_CONTRACT_ADDRESS, DEFAULT_RPC_URL
5
5
  from .types import InferenceMode, LLM
6
6
 
7
- __version__ = "0.3.8"
7
+ __version__ = "0.3.9"
8
8
 
9
9
  _client = None
10
10
 
@@ -417,7 +417,7 @@ def print_llm_completion_result(model_cid, tx_hash, llm_output):
417
417
  help='Temperature for LLM inference (0.0 to 1.0)')
418
418
  @click.option('--tools',
419
419
  type=str,
420
- default="[]",
420
+ default=None,
421
421
  help='Tool configurations in JSON format')
422
422
  @click.option('--tools-file',
423
423
  type=click.Path(exists=True, path_type=Path),
@@ -450,7 +450,6 @@ def chat(
450
450
  opengradient chat --model meta-llama/Meta-Llama-3-8B-Instruct --messages '[{"role":"user","content":"hello"}]' --max-tokens 50 --temperature 0.7
451
451
  opengradient chat -m mistralai/Mistral-7B-Instruct-v0.3 --messages-file messages.json --stop-sequence "." --stop-sequence "\n"
452
452
  """
453
- # TODO (Kyle): ^^^^^^^ Edit description with more examples using tools
454
453
  client: Client = ctx.obj['client']
455
454
  try:
456
455
  click.echo(f"Running LLM chat inference for model \"{model_cid}\"\n")
@@ -474,9 +473,9 @@ def chat(
474
473
  messages = json.load(file)
475
474
 
476
475
  # Parse tools if provided
477
- if (tools or tools != "[]") and tools_file:
476
+ if tools is not None and tools != "[]" and tools_file:
478
477
  click.echo("Cannot have both tools and tools_file")
479
- click.exit(1)
478
+ ctx.exit(1)
480
479
  return
481
480
 
482
481
  parsed_tools=[]
@@ -77,4 +77,5 @@ class Abi:
77
77
  class LLM(str, Enum):
78
78
  META_LLAMA3_8B_INSTRUCT = "meta-llama/Meta-Llama-3-8B-Instruct"
79
79
  LLAMA_3_2_3B_INSTRUCT = "meta-llama/Llama-3.2-3B-Instruct"
80
- MISTRAL_7B_INSTRUCT_V3 = "mistralai/Mistral-7B-Instruct-v0.3"
80
+ MISTRAL_7B_INSTRUCT_V3 = "mistralai/Mistral-7B-Instruct-v0.3"
81
+ HERMES_3_LLAMA_3_1_70B = "NousResearch/Hermes-3-Llama-3.1-70B"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: opengradient
3
- Version: 0.3.8
3
+ Version: 0.3.9
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