inferencesh 0.2.4__py3-none-any.whl → 0.2.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.
inferencesh/sdk.py CHANGED
@@ -264,6 +264,18 @@ class File(BaseModel):
264
264
  self.size = self._get_file_size() # Always update size
265
265
  self.filename = self._get_filename()
266
266
 
267
+ @classmethod
268
+ def model_json_schema(cls, **kwargs):
269
+ schema = super().model_json_schema(**kwargs)
270
+
271
+ # Create a schema that accepts either a string or the full object
272
+ return {
273
+ "oneOf": [
274
+ {"type": "string"}, # Accept string input
275
+ schema # Accept full object input
276
+ ]
277
+ }
278
+
267
279
 
268
280
  class ContextMessageRole(str, Enum):
269
281
  USER = "user"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: inferencesh
3
- Version: 0.2.4
3
+ Version: 0.2.5
4
4
  Summary: inference.sh Python SDK
5
5
  Author: Inference Shell Inc.
6
6
  Author-email: "Inference Shell Inc." <hello@inference.sh>
@@ -0,0 +1,8 @@
1
+ inferencesh/__init__.py,sha256=hbKkgHCh0lCdhWyHs3FHHRd8JfLeHkTd1bT4v79Fi8M,192
2
+ inferencesh/sdk.py,sha256=f_M4_-sKqYIg1kFiBjlI9-1nPNIw6DgLOdRo_9HaOzU,16202
3
+ inferencesh-0.2.5.dist-info/licenses/LICENSE,sha256=OsgqEWIh2el_QMj0y8O1A5Q5Dl-dxqqYbFE6fszuR4s,1086
4
+ inferencesh-0.2.5.dist-info/METADATA,sha256=65IzfW7RGpTXrJevMcZo0w5xXnb9eYK4xEkd2uV3Yms,2756
5
+ inferencesh-0.2.5.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
6
+ inferencesh-0.2.5.dist-info/entry_points.txt,sha256=6IC-fyozAqW3ljsMLGCXxJ0_ui2Jb-2fLHtoH1RTnEE,45
7
+ inferencesh-0.2.5.dist-info/top_level.txt,sha256=TSMHg3T1ThMl1HGAWmzBClwOYH1ump5neof9BfHIwaA,12
8
+ inferencesh-0.2.5.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.3.1)
2
+ Generator: setuptools (80.4.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,8 +0,0 @@
1
- inferencesh/__init__.py,sha256=hbKkgHCh0lCdhWyHs3FHHRd8JfLeHkTd1bT4v79Fi8M,192
2
- inferencesh/sdk.py,sha256=aIwo6F_1CwFDJ8EPdT5NCp77s4np6m1hyOSh3akpd6A,15832
3
- inferencesh-0.2.4.dist-info/licenses/LICENSE,sha256=OsgqEWIh2el_QMj0y8O1A5Q5Dl-dxqqYbFE6fszuR4s,1086
4
- inferencesh-0.2.4.dist-info/METADATA,sha256=2qVKhcIMtBOpjIv2bUjftW7hORXz69r4Lo3PkmDUGDw,2756
5
- inferencesh-0.2.4.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
6
- inferencesh-0.2.4.dist-info/entry_points.txt,sha256=6IC-fyozAqW3ljsMLGCXxJ0_ui2Jb-2fLHtoH1RTnEE,45
7
- inferencesh-0.2.4.dist-info/top_level.txt,sha256=TSMHg3T1ThMl1HGAWmzBClwOYH1ump5neof9BfHIwaA,12
8
- inferencesh-0.2.4.dist-info/RECORD,,