nucliadb-models 6.3.1.post3519__py3-none-any.whl → 6.3.1.post3524__py3-none-any.whl
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.
- nucliadb_models/common.py +2 -2
- {nucliadb_models-6.3.1.post3519.dist-info → nucliadb_models-6.3.1.post3524.dist-info}/METADATA +1 -1
- {nucliadb_models-6.3.1.post3519.dist-info → nucliadb_models-6.3.1.post3524.dist-info}/RECORD +5 -5
- {nucliadb_models-6.3.1.post3519.dist-info → nucliadb_models-6.3.1.post3524.dist-info}/WHEEL +0 -0
- {nucliadb_models-6.3.1.post3519.dist-info → nucliadb_models-6.3.1.post3524.dist-info}/top_level.txt +0 -0
nucliadb_models/common.py
CHANGED
|
@@ -101,7 +101,7 @@ class File(BaseModel):
|
|
|
101
101
|
|
|
102
102
|
@model_validator(mode="after")
|
|
103
103
|
def _check_internal_file_fields(self) -> Self:
|
|
104
|
-
if
|
|
104
|
+
if not content_types.valid(self.content_type):
|
|
105
105
|
raise ValueError(f"Unsupported content type: {self.content_type}")
|
|
106
106
|
if self.uri:
|
|
107
107
|
# Externally hosted file
|
|
@@ -133,7 +133,7 @@ class FileB64(BaseModel):
|
|
|
133
133
|
|
|
134
134
|
@field_validator("content_type")
|
|
135
135
|
def check_content_type(cls, v):
|
|
136
|
-
if
|
|
136
|
+
if not content_types.valid(v):
|
|
137
137
|
raise ValueError(f"Unsupported content type: {v}")
|
|
138
138
|
return v
|
|
139
139
|
|
{nucliadb_models-6.3.1.post3519.dist-info → nucliadb_models-6.3.1.post3524.dist-info}/RECORD
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
nucliadb_models/__init__.py,sha256=qSmhNKACMwdbU1rklMWlmJKmlRaWvrSksTtwEVkiydQ,1331
|
|
2
|
-
nucliadb_models/common.py,sha256=
|
|
2
|
+
nucliadb_models/common.py,sha256=JEEY7_AxRCBPHUF6J8XptR_QnGEjRBd02Kqm5WOySYc,7828
|
|
3
3
|
nucliadb_models/configuration.py,sha256=pKtxS8G_tGaJkvKopVeorZTuOEirlg-VLcpxUEAn2lc,1359
|
|
4
4
|
nucliadb_models/content_types.py,sha256=2B3TJpPYJqd-9xGiNiHJFngSIrVyNsZlN4PeB-HafIk,3682
|
|
5
5
|
nucliadb_models/conversation.py,sha256=i9x80US5e2I40zIIxeQg8BtaNri_qmuk1cSb_6VZu6U,3845
|
|
@@ -29,7 +29,7 @@ nucliadb_models/agents/ingestion.py,sha256=mV7gV6VpYg4VNpc59K3275TMUJZbUzeUnp3SZ
|
|
|
29
29
|
nucliadb_models/internal/__init__.py,sha256=cp15ZcFnHvpcu_5-aK2A4uUyvuZVV_MJn4bIXMa20ks,835
|
|
30
30
|
nucliadb_models/internal/predict.py,sha256=5rgUPrH_98gerySOZ-TR2PX_qzCGF1_8VxyOu3bGhis,2281
|
|
31
31
|
nucliadb_models/internal/shards.py,sha256=uZLsMkYWrJDHq3xy_w7snSeV2X3aDBuht9GC_MG3sKc,1976
|
|
32
|
-
nucliadb_models-6.3.1.
|
|
33
|
-
nucliadb_models-6.3.1.
|
|
34
|
-
nucliadb_models-6.3.1.
|
|
35
|
-
nucliadb_models-6.3.1.
|
|
32
|
+
nucliadb_models-6.3.1.post3524.dist-info/METADATA,sha256=5o79yiRX4cUQOvqM0BFwGoudpbwc_B0xJ6DmJ6Mhu00,759
|
|
33
|
+
nucliadb_models-6.3.1.post3524.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
|
|
34
|
+
nucliadb_models-6.3.1.post3524.dist-info/top_level.txt,sha256=UrY1I8oeovIRwkXLYplssTrxQdUjhSEFDFbnwaIV3tA,16
|
|
35
|
+
nucliadb_models-6.3.1.post3524.dist-info/RECORD,,
|
|
File without changes
|
{nucliadb_models-6.3.1.post3519.dist-info → nucliadb_models-6.3.1.post3524.dist-info}/top_level.txt
RENAMED
|
File without changes
|