inferencesh 0.2.4__tar.gz → 0.2.5__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.2.4/src/inferencesh.egg-info → inferencesh-0.2.5}/PKG-INFO +1 -1
- {inferencesh-0.2.4 → inferencesh-0.2.5}/pyproject.toml +1 -1
- {inferencesh-0.2.4 → inferencesh-0.2.5}/src/inferencesh/sdk.py +12 -0
- {inferencesh-0.2.4 → inferencesh-0.2.5/src/inferencesh.egg-info}/PKG-INFO +1 -1
- {inferencesh-0.2.4 → inferencesh-0.2.5}/LICENSE +0 -0
- {inferencesh-0.2.4 → inferencesh-0.2.5}/README.md +0 -0
- {inferencesh-0.2.4 → inferencesh-0.2.5}/setup.cfg +0 -0
- {inferencesh-0.2.4 → inferencesh-0.2.5}/setup.py +0 -0
- {inferencesh-0.2.4 → inferencesh-0.2.5}/src/inferencesh/__init__.py +0 -0
- {inferencesh-0.2.4 → inferencesh-0.2.5}/src/inferencesh.egg-info/SOURCES.txt +0 -0
- {inferencesh-0.2.4 → inferencesh-0.2.5}/src/inferencesh.egg-info/dependency_links.txt +0 -0
- {inferencesh-0.2.4 → inferencesh-0.2.5}/src/inferencesh.egg-info/entry_points.txt +0 -0
- {inferencesh-0.2.4 → inferencesh-0.2.5}/src/inferencesh.egg-info/requires.txt +0 -0
- {inferencesh-0.2.4 → inferencesh-0.2.5}/src/inferencesh.egg-info/top_level.txt +0 -0
- {inferencesh-0.2.4 → inferencesh-0.2.5}/tests/test_sdk.py +0 -0
|
@@ -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"
|
|
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
|