Skip to content

Commit fce161e

Browse files
committed
improve file class
1 parent dcbb587 commit fce161e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/inferencesh/models/file.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,10 @@ def model_json_schema(cls, **kwargs):
242242
schema["$id"] = "/schemas/File"
243243
# Create a schema that accepts either a string or the full object
244244
return {
245-
"oneOf": [
245+
"anyOf": [
246246
{"type": "string"}, # Accept string input
247247
schema # Accept full object input
248-
]
248+
],
249+
"title": "File",
250+
"description": "A class representing a file in the inference.sh ecosystem."
249251
}

0 commit comments

Comments
 (0)