We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dcbb587 commit fce161eCopy full SHA for fce161e
src/inferencesh/models/file.py
@@ -242,8 +242,10 @@ def model_json_schema(cls, **kwargs):
242
schema["$id"] = "/schemas/File"
243
# Create a schema that accepts either a string or the full object
244
return {
245
- "oneOf": [
+ "anyOf": [
246
{"type": "string"}, # Accept string input
247
schema # Accept full object input
248
- ]
+ ],
249
+ "title": "File",
250
+ "description": "A class representing a file in the inference.sh ecosystem."
251
}
0 commit comments