inferencesh 0.4.12__tar.gz → 0.4.13__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.12/src/inferencesh.egg-info → inferencesh-0.4.13}/PKG-INFO +1 -1
- {inferencesh-0.4.12 → inferencesh-0.4.13}/pyproject.toml +1 -1
- {inferencesh-0.4.12 → inferencesh-0.4.13}/src/inferencesh/models/file.py +7 -8
- {inferencesh-0.4.12 → inferencesh-0.4.13/src/inferencesh.egg-info}/PKG-INFO +1 -1
- {inferencesh-0.4.12 → inferencesh-0.4.13}/LICENSE +0 -0
- {inferencesh-0.4.12 → inferencesh-0.4.13}/README.md +0 -0
- {inferencesh-0.4.12 → inferencesh-0.4.13}/setup.cfg +0 -0
- {inferencesh-0.4.12 → inferencesh-0.4.13}/src/inferencesh/__init__.py +0 -0
- {inferencesh-0.4.12 → inferencesh-0.4.13}/src/inferencesh/client.py +0 -0
- {inferencesh-0.4.12 → inferencesh-0.4.13}/src/inferencesh/models/__init__.py +0 -0
- {inferencesh-0.4.12 → inferencesh-0.4.13}/src/inferencesh/models/base.py +0 -0
- {inferencesh-0.4.12 → inferencesh-0.4.13}/src/inferencesh/models/llm.py +0 -0
- {inferencesh-0.4.12 → inferencesh-0.4.13}/src/inferencesh/utils/__init__.py +0 -0
- {inferencesh-0.4.12 → inferencesh-0.4.13}/src/inferencesh/utils/download.py +0 -0
- {inferencesh-0.4.12 → inferencesh-0.4.13}/src/inferencesh/utils/storage.py +0 -0
- {inferencesh-0.4.12 → inferencesh-0.4.13}/src/inferencesh.egg-info/SOURCES.txt +0 -0
- {inferencesh-0.4.12 → inferencesh-0.4.13}/src/inferencesh.egg-info/dependency_links.txt +0 -0
- {inferencesh-0.4.12 → inferencesh-0.4.13}/src/inferencesh.egg-info/entry_points.txt +0 -0
- {inferencesh-0.4.12 → inferencesh-0.4.13}/src/inferencesh.egg-info/requires.txt +0 -0
- {inferencesh-0.4.12 → inferencesh-0.4.13}/src/inferencesh.egg-info/top_level.txt +0 -0
- {inferencesh-0.4.12 → inferencesh-0.4.13}/tests/test_client.py +0 -0
- {inferencesh-0.4.12 → inferencesh-0.4.13}/tests/test_sdk.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
from typing import Optional, Union, Any
|
|
2
|
-
from pydantic import BaseModel, Field, PrivateAttr, model_validator,
|
|
3
|
-
from pydantic_core import CoreSchema
|
|
1
|
+
from typing import Optional, Union, Any
|
|
2
|
+
from pydantic import BaseModel, Field, PrivateAttr, model_validator, GetJsonSchemaHandler
|
|
3
|
+
from pydantic_core import CoreSchema
|
|
4
4
|
import mimetypes
|
|
5
5
|
import os
|
|
6
6
|
import urllib.request
|
|
@@ -264,15 +264,14 @@ class File(BaseModel):
|
|
|
264
264
|
def __get_pydantic_json_schema__(
|
|
265
265
|
cls, schema: CoreSchema, handler: GetJsonSchemaHandler
|
|
266
266
|
) -> dict[str, Any]:
|
|
267
|
-
"""
|
|
267
|
+
"""Generate a simple JSON schema that accepts either a string or an object"""
|
|
268
268
|
json_schema = handler(schema)
|
|
269
|
-
|
|
270
|
-
|
|
269
|
+
# Don't resolve refs here - that's what was causing the recursion
|
|
270
|
+
return {
|
|
271
271
|
"$id": "/schemas/File",
|
|
272
272
|
"oneOf": [
|
|
273
273
|
{"type": "string"},
|
|
274
274
|
json_schema
|
|
275
275
|
]
|
|
276
|
-
}
|
|
277
|
-
return json_schema
|
|
276
|
+
}
|
|
278
277
|
|
|
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
|