inferencesh 0.4.7__tar.gz → 0.4.8__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.
Potentially problematic release.
This version of inferencesh might be problematic. Click here for more details.
- {inferencesh-0.4.7/src/inferencesh.egg-info → inferencesh-0.4.8}/PKG-INFO +1 -1
- {inferencesh-0.4.7 → inferencesh-0.4.8}/pyproject.toml +1 -1
- {inferencesh-0.4.7 → inferencesh-0.4.8}/src/inferencesh/models/file.py +15 -7
- {inferencesh-0.4.7 → inferencesh-0.4.8/src/inferencesh.egg-info}/PKG-INFO +1 -1
- {inferencesh-0.4.7 → inferencesh-0.4.8}/LICENSE +0 -0
- {inferencesh-0.4.7 → inferencesh-0.4.8}/README.md +0 -0
- {inferencesh-0.4.7 → inferencesh-0.4.8}/setup.cfg +0 -0
- {inferencesh-0.4.7 → inferencesh-0.4.8}/src/inferencesh/__init__.py +0 -0
- {inferencesh-0.4.7 → inferencesh-0.4.8}/src/inferencesh/client.py +0 -0
- {inferencesh-0.4.7 → inferencesh-0.4.8}/src/inferencesh/models/__init__.py +0 -0
- {inferencesh-0.4.7 → inferencesh-0.4.8}/src/inferencesh/models/base.py +0 -0
- {inferencesh-0.4.7 → inferencesh-0.4.8}/src/inferencesh/models/llm.py +0 -0
- {inferencesh-0.4.7 → inferencesh-0.4.8}/src/inferencesh/utils/__init__.py +0 -0
- {inferencesh-0.4.7 → inferencesh-0.4.8}/src/inferencesh/utils/download.py +0 -0
- {inferencesh-0.4.7 → inferencesh-0.4.8}/src/inferencesh/utils/storage.py +0 -0
- {inferencesh-0.4.7 → inferencesh-0.4.8}/src/inferencesh.egg-info/SOURCES.txt +0 -0
- {inferencesh-0.4.7 → inferencesh-0.4.8}/src/inferencesh.egg-info/dependency_links.txt +0 -0
- {inferencesh-0.4.7 → inferencesh-0.4.8}/src/inferencesh.egg-info/entry_points.txt +0 -0
- {inferencesh-0.4.7 → inferencesh-0.4.8}/src/inferencesh.egg-info/requires.txt +0 -0
- {inferencesh-0.4.7 → inferencesh-0.4.8}/src/inferencesh.egg-info/top_level.txt +0 -0
- {inferencesh-0.4.7 → inferencesh-0.4.8}/tests/test_client.py +0 -0
- {inferencesh-0.4.7 → inferencesh-0.4.8}/tests/test_sdk.py +0 -0
|
@@ -239,13 +239,21 @@ class File(BaseModel):
|
|
|
239
239
|
@classmethod
|
|
240
240
|
def model_json_schema(cls, **kwargs):
|
|
241
241
|
schema = super().model_json_schema(**kwargs)
|
|
242
|
-
schema["$id"] = "/schemas/File"
|
|
243
242
|
# Create a schema that accepts either a string or the full object
|
|
244
|
-
|
|
243
|
+
base_schema = {
|
|
245
244
|
"anyOf": [
|
|
246
245
|
{"type": "string"}, # Accept string input
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
246
|
+
{
|
|
247
|
+
"type": "object",
|
|
248
|
+
"properties": schema["properties"],
|
|
249
|
+
"title": schema.get("title", "File"),
|
|
250
|
+
"description": "A class representing a file in the inference.sh ecosystem."
|
|
251
|
+
}
|
|
252
|
+
]
|
|
253
|
+
}
|
|
254
|
+
# If this is the top-level schema, return as is
|
|
255
|
+
if not kwargs.get("ref_template"):
|
|
256
|
+
return base_schema
|
|
257
|
+
# If this is being used in $defs, include it in the schema
|
|
258
|
+
schema.update(base_schema)
|
|
259
|
+
return schema
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|