h2ogpte 1.6.40rc4__py3-none-any.whl → 1.6.40rc6__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.
- h2ogpte/__init__.py +1 -1
- h2ogpte/rest_async/__init__.py +1 -1
- h2ogpte/rest_async/api_client.py +1 -1
- h2ogpte/rest_async/configuration.py +1 -1
- h2ogpte/rest_async/models/collection_create_request.py +6 -3
- h2ogpte/rest_sync/__init__.py +1 -1
- h2ogpte/rest_sync/api_client.py +1 -1
- h2ogpte/rest_sync/configuration.py +1 -1
- h2ogpte/rest_sync/models/collection_create_request.py +6 -3
- h2ogpte/types.py +1 -0
- {h2ogpte-1.6.40rc4.dist-info → h2ogpte-1.6.40rc6.dist-info}/METADATA +1 -1
- {h2ogpte-1.6.40rc4.dist-info → h2ogpte-1.6.40rc6.dist-info}/RECORD +14 -14
- {h2ogpte-1.6.40rc4.dist-info → h2ogpte-1.6.40rc6.dist-info}/WHEEL +0 -0
- {h2ogpte-1.6.40rc4.dist-info → h2ogpte-1.6.40rc6.dist-info}/top_level.txt +0 -0
h2ogpte/__init__.py
CHANGED
h2ogpte/rest_async/__init__.py
CHANGED
h2ogpte/rest_async/api_client.py
CHANGED
|
@@ -90,7 +90,7 @@ class ApiClient:
|
|
|
90
90
|
self.default_headers[header_name] = header_value
|
|
91
91
|
self.cookie = cookie
|
|
92
92
|
# Set default User-Agent.
|
|
93
|
-
self.user_agent = 'OpenAPI-Generator/1.6.40-
|
|
93
|
+
self.user_agent = 'OpenAPI-Generator/1.6.40-dev6/python'
|
|
94
94
|
self.client_side_validation = configuration.client_side_validation
|
|
95
95
|
|
|
96
96
|
async def __aenter__(self):
|
|
@@ -499,7 +499,7 @@ class Configuration:
|
|
|
499
499
|
"OS: {env}\n"\
|
|
500
500
|
"Python Version: {pyversion}\n"\
|
|
501
501
|
"Version of the API: v1.0.0\n"\
|
|
502
|
-
"SDK Package Version: 1.6.40-
|
|
502
|
+
"SDK Package Version: 1.6.40-dev6".\
|
|
503
503
|
format(env=sys.platform, pyversion=sys.version)
|
|
504
504
|
|
|
505
505
|
def get_host_settings(self) -> List[HostSetting]:
|
|
@@ -17,7 +17,8 @@ import pprint
|
|
|
17
17
|
import re # noqa: F401
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
|
-
from
|
|
20
|
+
from datetime import datetime
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
21
22
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
23
|
from h2ogpte.rest_async.models.chat_settings import ChatSettings
|
|
23
24
|
from h2ogpte.rest_async.models.collection_settings import CollectionSettings
|
|
@@ -33,7 +34,8 @@ class CollectionCreateRequest(BaseModel):
|
|
|
33
34
|
embedding_model: Optional[StrictStr] = None
|
|
34
35
|
collection_settings: Optional[CollectionSettings] = None
|
|
35
36
|
chat_settings: Optional[ChatSettings] = None
|
|
36
|
-
|
|
37
|
+
expiry_date: Optional[datetime] = Field(default=None, description="Optional expiration date for the collection")
|
|
38
|
+
__properties: ClassVar[List[str]] = ["name", "description", "embedding_model", "collection_settings", "chat_settings", "expiry_date"]
|
|
37
39
|
|
|
38
40
|
model_config = ConfigDict(
|
|
39
41
|
populate_by_name=True,
|
|
@@ -96,7 +98,8 @@ class CollectionCreateRequest(BaseModel):
|
|
|
96
98
|
"description": obj.get("description"),
|
|
97
99
|
"embedding_model": obj.get("embedding_model"),
|
|
98
100
|
"collection_settings": CollectionSettings.from_dict(obj["collection_settings"]) if obj.get("collection_settings") is not None else None,
|
|
99
|
-
"chat_settings": ChatSettings.from_dict(obj["chat_settings"]) if obj.get("chat_settings") is not None else None
|
|
101
|
+
"chat_settings": ChatSettings.from_dict(obj["chat_settings"]) if obj.get("chat_settings") is not None else None,
|
|
102
|
+
"expiry_date": obj.get("expiry_date")
|
|
100
103
|
})
|
|
101
104
|
return _obj
|
|
102
105
|
|
h2ogpte/rest_sync/__init__.py
CHANGED
h2ogpte/rest_sync/api_client.py
CHANGED
|
@@ -90,7 +90,7 @@ class ApiClient:
|
|
|
90
90
|
self.default_headers[header_name] = header_value
|
|
91
91
|
self.cookie = cookie
|
|
92
92
|
# Set default User-Agent.
|
|
93
|
-
self.user_agent = 'OpenAPI-Generator/1.6.40-
|
|
93
|
+
self.user_agent = 'OpenAPI-Generator/1.6.40-dev6/python'
|
|
94
94
|
self.client_side_validation = configuration.client_side_validation
|
|
95
95
|
|
|
96
96
|
def __enter__(self):
|
|
@@ -503,7 +503,7 @@ class Configuration:
|
|
|
503
503
|
"OS: {env}\n"\
|
|
504
504
|
"Python Version: {pyversion}\n"\
|
|
505
505
|
"Version of the API: v1.0.0\n"\
|
|
506
|
-
"SDK Package Version: 1.6.40-
|
|
506
|
+
"SDK Package Version: 1.6.40-dev6".\
|
|
507
507
|
format(env=sys.platform, pyversion=sys.version)
|
|
508
508
|
|
|
509
509
|
def get_host_settings(self) -> List[HostSetting]:
|
|
@@ -17,7 +17,8 @@ import pprint
|
|
|
17
17
|
import re # noqa: F401
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
|
-
from
|
|
20
|
+
from datetime import datetime
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
21
22
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
23
|
from h2ogpte.rest_sync.models.chat_settings import ChatSettings
|
|
23
24
|
from h2ogpte.rest_sync.models.collection_settings import CollectionSettings
|
|
@@ -33,7 +34,8 @@ class CollectionCreateRequest(BaseModel):
|
|
|
33
34
|
embedding_model: Optional[StrictStr] = None
|
|
34
35
|
collection_settings: Optional[CollectionSettings] = None
|
|
35
36
|
chat_settings: Optional[ChatSettings] = None
|
|
36
|
-
|
|
37
|
+
expiry_date: Optional[datetime] = Field(default=None, description="Optional expiration date for the collection")
|
|
38
|
+
__properties: ClassVar[List[str]] = ["name", "description", "embedding_model", "collection_settings", "chat_settings", "expiry_date"]
|
|
37
39
|
|
|
38
40
|
model_config = ConfigDict(
|
|
39
41
|
populate_by_name=True,
|
|
@@ -96,7 +98,8 @@ class CollectionCreateRequest(BaseModel):
|
|
|
96
98
|
"description": obj.get("description"),
|
|
97
99
|
"embedding_model": obj.get("embedding_model"),
|
|
98
100
|
"collection_settings": CollectionSettings.from_dict(obj["collection_settings"]) if obj.get("collection_settings") is not None else None,
|
|
99
|
-
"chat_settings": ChatSettings.from_dict(obj["chat_settings"]) if obj.get("chat_settings") is not None else None
|
|
101
|
+
"chat_settings": ChatSettings.from_dict(obj["chat_settings"]) if obj.get("chat_settings") is not None else None,
|
|
102
|
+
"expiry_date": obj.get("expiry_date")
|
|
100
103
|
})
|
|
101
104
|
return _obj
|
|
102
105
|
|
h2ogpte/types.py
CHANGED
|
@@ -16,6 +16,7 @@ class JobKind(str, Enum):
|
|
|
16
16
|
IngestWebsiteJob = "IngestWebsiteJob"
|
|
17
17
|
IndexFilesJob = "IndexFilesJob"
|
|
18
18
|
UpdateCollectionStatsJob = "UpdateCollectionStatsJob"
|
|
19
|
+
DeleteUserJob = "DeleteUserJob"
|
|
19
20
|
DeleteChatSessionsJob = "DeleteChatSessionsJob"
|
|
20
21
|
DeleteCollectionsJob = "DeleteCollectionsJob"
|
|
21
22
|
DeleteCollectionsAsAdminJob = "DeleteCollectionsAsAdminJob"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
h2ogpte/__init__.py,sha256=
|
|
1
|
+
h2ogpte/__init__.py,sha256=4eHpP0Mg7O_ZM-eY9AN1YsriBlvXK5dzHWPyBuG9pr0,1524
|
|
2
2
|
h2ogpte/connectors.py,sha256=nKUK6rWeFoI4VTonh4xvAfLMHFqeYgVgSydRTYUzTZg,7728
|
|
3
3
|
h2ogpte/errors.py,sha256=XgLdfJO1fZ9Bf9rhUKpnvRzzvkNyan3Oc6WzGS6hCUA,1248
|
|
4
4
|
h2ogpte/h2ogpte.py,sha256=5ma_DviWt4FI2z_dmRafyDp2-kkzz19SB8DLfk204WA,277615
|
|
@@ -7,12 +7,12 @@ h2ogpte/h2ogpte_sync_base.py,sha256=QDv7wq05NC4FVJujFFHmn5D5FbjmsF4Ydf_XqLQTRpc,
|
|
|
7
7
|
h2ogpte/session.py,sha256=8HXgseLgjAIRoy7e65x6YeyjnoJBV29VaOdlnpkXNJM,30598
|
|
8
8
|
h2ogpte/session_async.py,sha256=gHb0Do_HbN8cL3-83dTuMKx680LOk84WwiJekE2nDyI,28877
|
|
9
9
|
h2ogpte/shared_client.py,sha256=Zh24myL--5JDdrKoJPW4aeprHX6a_oB9o461Ho3hnU8,14691
|
|
10
|
-
h2ogpte/types.py,sha256=
|
|
10
|
+
h2ogpte/types.py,sha256=unzc6zE1GhHWtCjLTGRqvwmWInM1GPJx4xzd0VuitKk,14512
|
|
11
11
|
h2ogpte/utils.py,sha256=Z9n57xxPu0KtsCzkJ9V_VgTW--oG_aXTLBgmXDWSdnM,3201
|
|
12
|
-
h2ogpte/rest_async/__init__.py,sha256=
|
|
13
|
-
h2ogpte/rest_async/api_client.py,sha256=
|
|
12
|
+
h2ogpte/rest_async/__init__.py,sha256=Eqtavxsj6AqwGBlNKOdNtrY7vqUYZU7gvhy_MNF6qZ8,14582
|
|
13
|
+
h2ogpte/rest_async/api_client.py,sha256=zZ6FJhC0BeTvDbriDjjUFYqXBXWrZ4QY4UePDkdvjQQ,29510
|
|
14
14
|
h2ogpte/rest_async/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
|
|
15
|
-
h2ogpte/rest_async/configuration.py,sha256=
|
|
15
|
+
h2ogpte/rest_async/configuration.py,sha256=RSiAZ84X6BhKinCPQUnNzmPkUOfBRvRuQYUMOetyc28,19567
|
|
16
16
|
h2ogpte/rest_async/exceptions.py,sha256=aSDc-0lURtyQjf5HGa7_Ta0nATxKxfHW3huDA2Zdj6o,8370
|
|
17
17
|
h2ogpte/rest_async/rest.py,sha256=mdjDwzJ1kiaYtONUfDRqKsRPw5-tG6eyZV2P1yBuwRo,9147
|
|
18
18
|
h2ogpte/rest_async/api/__init__.py,sha256=l4UOcqn7RsyOZPJX7UOqSiUYn9E300bYvkyI21b6YJI,909
|
|
@@ -59,7 +59,7 @@ h2ogpte/rest_async/models/chunk.py,sha256=4t2oms4W29WEYKi7KvzCArsLOaCOLYyyQRrJtt
|
|
|
59
59
|
h2ogpte/rest_async/models/chunk_search_result.py,sha256=keifMKId0YhLFGzh5nv3jNCtQt7YciiwUd6-DsNckAs,4985
|
|
60
60
|
h2ogpte/rest_async/models/collection.py,sha256=aPx0PvCvlrx1lZ6foo1dKUZ8KpL761i1sKZYFcrEZOA,9003
|
|
61
61
|
h2ogpte/rest_async/models/collection_change_request.py,sha256=CIb51wkIjmud3RPSqaEri7V7BB5Qa6kPPvL9nj6l4ao,4443
|
|
62
|
-
h2ogpte/rest_async/models/collection_create_request.py,sha256=
|
|
62
|
+
h2ogpte/rest_async/models/collection_create_request.py,sha256=ZvvbmK7IQzeDA2qXJAFkFvn57mktjBPAQZyWaIXMgr8,5824
|
|
63
63
|
h2ogpte/rest_async/models/collection_settings.py,sha256=u9t3OtsOYR-H1JKHX7nW7dalk-Kn0i3W8mvfYYcSoGk,9466
|
|
64
64
|
h2ogpte/rest_async/models/collection_update_request.py,sha256=Y2ojg5NqGbR_Lm_Pf-Aig46HyZ9OKBN4-iwT_PdAWco,6332
|
|
65
65
|
h2ogpte/rest_async/models/confirm_user_deletion_request.py,sha256=6L99MbScW_qbvxHKTv8dNJIQyY2L5ak13nYxvL4vBcs,4527
|
|
@@ -161,10 +161,10 @@ h2ogpte/rest_async/models/user_deletion_request.py,sha256=z7gD8XKOGwwg782TRzXJii
|
|
|
161
161
|
h2ogpte/rest_async/models/user_info.py,sha256=ef59Eh9k42JUY3X2RnCrwYR7sc_8lXT1vRLGoNz3uTU,4489
|
|
162
162
|
h2ogpte/rest_async/models/user_job_details.py,sha256=kzu8fLxVsRMgnyt6dLr0VWjlIoE3i1VRpGR9nDxFyk4,4985
|
|
163
163
|
h2ogpte/rest_async/models/user_permission.py,sha256=9ffijaF3U3SYz_T_kcqHPJUfIZFkpCH0vBGboPjsg2o,4646
|
|
164
|
-
h2ogpte/rest_sync/__init__.py,sha256=
|
|
165
|
-
h2ogpte/rest_sync/api_client.py,sha256=
|
|
164
|
+
h2ogpte/rest_sync/__init__.py,sha256=yGiZtm2QJM2dmSady1vJ_5UsYN3XamVUj9vnBtJl5Vo,14429
|
|
165
|
+
h2ogpte/rest_sync/api_client.py,sha256=OCkFMJZJsZt-AlEHiXZqsoGHxN_jMcilrMQUoxrIFjM,29397
|
|
166
166
|
h2ogpte/rest_sync/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
|
|
167
|
-
h2ogpte/rest_sync/configuration.py,sha256=
|
|
167
|
+
h2ogpte/rest_sync/configuration.py,sha256=pvKlKDEVNN5poJ0Z3v9JFwnrfAVMo7F7PtbBoN9Y81A,19850
|
|
168
168
|
h2ogpte/rest_sync/exceptions.py,sha256=aSDc-0lURtyQjf5HGa7_Ta0nATxKxfHW3huDA2Zdj6o,8370
|
|
169
169
|
h2ogpte/rest_sync/rest.py,sha256=evRzviTYC_fsrpTtFlGvruXmquH9C0jDn-oQrGrE5A0,11314
|
|
170
170
|
h2ogpte/rest_sync/api/__init__.py,sha256=dHcQUPeqF3jrOEx8vDWG3an_HpOwQFU8id_s9GC_o0E,895
|
|
@@ -211,7 +211,7 @@ h2ogpte/rest_sync/models/chunk.py,sha256=4t2oms4W29WEYKi7KvzCArsLOaCOLYyyQRrJttl
|
|
|
211
211
|
h2ogpte/rest_sync/models/chunk_search_result.py,sha256=keifMKId0YhLFGzh5nv3jNCtQt7YciiwUd6-DsNckAs,4985
|
|
212
212
|
h2ogpte/rest_sync/models/collection.py,sha256=aPx0PvCvlrx1lZ6foo1dKUZ8KpL761i1sKZYFcrEZOA,9003
|
|
213
213
|
h2ogpte/rest_sync/models/collection_change_request.py,sha256=CIb51wkIjmud3RPSqaEri7V7BB5Qa6kPPvL9nj6l4ao,4443
|
|
214
|
-
h2ogpte/rest_sync/models/collection_create_request.py,sha256=
|
|
214
|
+
h2ogpte/rest_sync/models/collection_create_request.py,sha256=6OTUMFNsJ3jwSr3PIiXeyz2CNxQFJy5q5Uj_2XkxfsY,5822
|
|
215
215
|
h2ogpte/rest_sync/models/collection_settings.py,sha256=Q-yDvnVnZBlnH7gLgXP5rsnxZLVM4lxX2FEa40qb45o,9465
|
|
216
216
|
h2ogpte/rest_sync/models/collection_update_request.py,sha256=Y2ojg5NqGbR_Lm_Pf-Aig46HyZ9OKBN4-iwT_PdAWco,6332
|
|
217
217
|
h2ogpte/rest_sync/models/confirm_user_deletion_request.py,sha256=6L99MbScW_qbvxHKTv8dNJIQyY2L5ak13nYxvL4vBcs,4527
|
|
@@ -313,7 +313,7 @@ h2ogpte/rest_sync/models/user_deletion_request.py,sha256=z7gD8XKOGwwg782TRzXJiiP
|
|
|
313
313
|
h2ogpte/rest_sync/models/user_info.py,sha256=ef59Eh9k42JUY3X2RnCrwYR7sc_8lXT1vRLGoNz3uTU,4489
|
|
314
314
|
h2ogpte/rest_sync/models/user_job_details.py,sha256=9cbhpgLMDpar-aTOaY5Ygud-8Kbi23cLNldTGab0Sd8,4984
|
|
315
315
|
h2ogpte/rest_sync/models/user_permission.py,sha256=9ffijaF3U3SYz_T_kcqHPJUfIZFkpCH0vBGboPjsg2o,4646
|
|
316
|
-
h2ogpte-1.6.
|
|
317
|
-
h2ogpte-1.6.
|
|
318
|
-
h2ogpte-1.6.
|
|
319
|
-
h2ogpte-1.6.
|
|
316
|
+
h2ogpte-1.6.40rc6.dist-info/METADATA,sha256=yhLpbRr_MJL8ayUqf9CUixIvnuiQ1xJo8hwg5A1gnt4,7521
|
|
317
|
+
h2ogpte-1.6.40rc6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
318
|
+
h2ogpte-1.6.40rc6.dist-info/top_level.txt,sha256=vXV4JnNwFWFAqTWyHrH-cGIQqbCcEDG9-BbyNn58JpM,8
|
|
319
|
+
h2ogpte-1.6.40rc6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|