nucliadb 6.9.2.post5282__py3-none-any.whl → 6.9.3.post5290__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.
Potentially problematic release.
This version of nucliadb might be problematic. Click here for more details.
- nucliadb/ingest/fields/conversation.py +1 -1
- nucliadb/writer/resource/field.py +4 -1
- {nucliadb-6.9.2.post5282.dist-info → nucliadb-6.9.3.post5290.dist-info}/METADATA +6 -6
- {nucliadb-6.9.2.post5282.dist-info → nucliadb-6.9.3.post5290.dist-info}/RECORD +7 -7
- {nucliadb-6.9.2.post5282.dist-info → nucliadb-6.9.3.post5290.dist-info}/WHEEL +0 -0
- {nucliadb-6.9.2.post5282.dist-info → nucliadb-6.9.3.post5290.dist-info}/entry_points.txt +0 -0
- {nucliadb-6.9.2.post5282.dist-info → nucliadb-6.9.3.post5290.dist-info}/top_level.txt +0 -0
|
@@ -25,7 +25,7 @@ from nucliadb_protos.resources_pb2 import CloudFile, FieldConversation, SplitMet
|
|
|
25
25
|
from nucliadb_protos.resources_pb2 import Conversation as PBConversation
|
|
26
26
|
from nucliadb_utils.storages.storage import StorageField
|
|
27
27
|
|
|
28
|
-
MAX_CONVERSATION_MESSAGES =
|
|
28
|
+
MAX_CONVERSATION_MESSAGES = None # No limit
|
|
29
29
|
|
|
30
30
|
PAGE_SIZE = 200
|
|
31
31
|
|
|
@@ -564,7 +564,10 @@ async def _conversation_append_checks(
|
|
|
564
564
|
|
|
565
565
|
# Make sure that the max number of messages is not exceeded
|
|
566
566
|
current_message_count = (await conv.get_metadata()).total
|
|
567
|
-
if
|
|
567
|
+
if (
|
|
568
|
+
MAX_CONVERSATION_MESSAGES is not None
|
|
569
|
+
and (len(input.messages) + current_message_count) > MAX_CONVERSATION_MESSAGES
|
|
570
|
+
):
|
|
568
571
|
raise HTTPException(
|
|
569
572
|
status_code=422,
|
|
570
573
|
detail=f"Conversation fields cannot have more than {MAX_CONVERSATION_MESSAGES} messages.",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: nucliadb
|
|
3
|
-
Version: 6.9.
|
|
3
|
+
Version: 6.9.3.post5290
|
|
4
4
|
Summary: NucliaDB
|
|
5
5
|
Author-email: Nuclia <nucliadb@nuclia.com>
|
|
6
6
|
License-Expression: AGPL-3.0-or-later
|
|
@@ -18,11 +18,11 @@ Classifier: Programming Language :: Python :: 3.12
|
|
|
18
18
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
19
19
|
Requires-Python: <4,>=3.10
|
|
20
20
|
Description-Content-Type: text/markdown
|
|
21
|
-
Requires-Dist: nucliadb-telemetry[all]>=6.9.
|
|
22
|
-
Requires-Dist: nucliadb-utils[cache,fastapi,storages]>=6.9.
|
|
23
|
-
Requires-Dist: nucliadb-protos>=6.9.
|
|
24
|
-
Requires-Dist: nucliadb-models>=6.9.
|
|
25
|
-
Requires-Dist: nidx-protos>=6.9.
|
|
21
|
+
Requires-Dist: nucliadb-telemetry[all]>=6.9.3.post5290
|
|
22
|
+
Requires-Dist: nucliadb-utils[cache,fastapi,storages]>=6.9.3.post5290
|
|
23
|
+
Requires-Dist: nucliadb-protos>=6.9.3.post5290
|
|
24
|
+
Requires-Dist: nucliadb-models>=6.9.3.post5290
|
|
25
|
+
Requires-Dist: nidx-protos>=6.9.3.post5290
|
|
26
26
|
Requires-Dist: nucliadb-admin-assets>=1.0.0.post1224
|
|
27
27
|
Requires-Dist: nuclia-models>=0.50.0
|
|
28
28
|
Requires-Dist: uvicorn[standard]
|
|
@@ -156,7 +156,7 @@ nucliadb/ingest/consumer/shard_creator.py,sha256=qUEpxZLE1etw1nL8L3O9HvZBx5NNql7
|
|
|
156
156
|
nucliadb/ingest/consumer/utils.py,sha256=jpX8D4lKzuPCpArQLZeX_Zczq3pfen_zAf8sPJfOEZU,2642
|
|
157
157
|
nucliadb/ingest/fields/__init__.py,sha256=cp15ZcFnHvpcu_5-aK2A4uUyvuZVV_MJn4bIXMa20ks,835
|
|
158
158
|
nucliadb/ingest/fields/base.py,sha256=Yk6b7OQ96YAAaDEyckry6-dBhzXASzuJucjTpEvFUZ4,23715
|
|
159
|
-
nucliadb/ingest/fields/conversation.py,sha256=
|
|
159
|
+
nucliadb/ingest/fields/conversation.py,sha256=QbHBtjOV_KWeJu_nrP8DTQ6uTc-yDAXliiJ1f2LienY,9570
|
|
160
160
|
nucliadb/ingest/fields/exceptions.py,sha256=sZBk21BSrXFdOdo1qUdCAyD-9YMYakSLdn4_WdIPCIQ,1217
|
|
161
161
|
nucliadb/ingest/fields/file.py,sha256=1v4jLg3balUua2VmSV8hHkAwPFShTUCOzufZvIUQcQw,4740
|
|
162
162
|
nucliadb/ingest/fields/generic.py,sha256=elgtqv15aJUq3zY7X_g0bli_2BpcwPArVvzhe54Y4Ig,1547
|
|
@@ -375,7 +375,7 @@ nucliadb/writer/api/v1/vectorsets.py,sha256=F3iMViL5G95_Tns4aO2SOA0DwAzxK2_P8MXx
|
|
|
375
375
|
nucliadb/writer/resource/__init__.py,sha256=cp15ZcFnHvpcu_5-aK2A4uUyvuZVV_MJn4bIXMa20ks,835
|
|
376
376
|
nucliadb/writer/resource/audit.py,sha256=FvxMZPzrNHtd31HgpZEvxzwAkbxJTZRhPLqRYYJi3tA,1426
|
|
377
377
|
nucliadb/writer/resource/basic.py,sha256=44GK8M9EEVoAUfGiabdLrrpENqeFwNn7qwxF2AHhQGg,10504
|
|
378
|
-
nucliadb/writer/resource/field.py,sha256=
|
|
378
|
+
nucliadb/writer/resource/field.py,sha256=FF1cDuvDPZN6TrwiMQiyGqxNU4bGxXYpVcHsM-BNpKs,22946
|
|
379
379
|
nucliadb/writer/resource/origin.py,sha256=pvhUDdU0mlWPUcpoQi4LDUJaRtfjzVVrA8XcGVI_N8k,2021
|
|
380
380
|
nucliadb/writer/tus/__init__.py,sha256=Kera0BtxoDX0ngPftXiMjNgjrhtQ3l2XFc5nJqSBOJY,5498
|
|
381
381
|
nucliadb/writer/tus/azure.py,sha256=yxoRi4PhGDikTqVK3PiuVyguy8H9DOS66JpZCY4hpUY,4177
|
|
@@ -386,8 +386,8 @@ nucliadb/writer/tus/local.py,sha256=7jYa_w9b-N90jWgN2sQKkNcomqn6JMVBOVeDOVYJHto,
|
|
|
386
386
|
nucliadb/writer/tus/s3.py,sha256=vu1BGg4VqJ_x2P1u2BxqPKlSfw5orT_a3R-Ln5oPUpU,8483
|
|
387
387
|
nucliadb/writer/tus/storage.py,sha256=ToqwjoYnjI4oIcwzkhha_MPxi-k4Jk3Lt55zRwaC1SM,2903
|
|
388
388
|
nucliadb/writer/tus/utils.py,sha256=MSdVbRsRSZVdkaum69_0wku7X3p5wlZf4nr6E0GMKbw,2556
|
|
389
|
-
nucliadb-6.9.
|
|
390
|
-
nucliadb-6.9.
|
|
391
|
-
nucliadb-6.9.
|
|
392
|
-
nucliadb-6.9.
|
|
393
|
-
nucliadb-6.9.
|
|
389
|
+
nucliadb-6.9.3.post5290.dist-info/METADATA,sha256=4vQ4BF0XZCMBSLDcbFox0HLi4sYZxqM3sOzsdM1xH5w,4118
|
|
390
|
+
nucliadb-6.9.3.post5290.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
391
|
+
nucliadb-6.9.3.post5290.dist-info/entry_points.txt,sha256=XqGfgFDuY3zXQc8ewXM2TRVjTModIq851zOsgrmaXx4,1268
|
|
392
|
+
nucliadb-6.9.3.post5290.dist-info/top_level.txt,sha256=hwYhTVnX7jkQ9gJCkVrbqEG1M4lT2F_iPQND1fCzF80,20
|
|
393
|
+
nucliadb-6.9.3.post5290.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|