h2ogpte 1.6.43rc7__py3-none-any.whl → 1.6.44rc6__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/h2ogpte.py +70 -0
- h2ogpte/h2ogpte_async.py +70 -0
- h2ogpte/rest_async/__init__.py +1 -1
- h2ogpte/rest_async/api/permissions_api.py +6 -6
- h2ogpte/rest_async/api_client.py +1 -1
- h2ogpte/rest_async/configuration.py +1 -1
- h2ogpte/rest_async/models/user_permission.py +5 -3
- h2ogpte/rest_sync/__init__.py +1 -1
- h2ogpte/rest_sync/api/permissions_api.py +6 -6
- h2ogpte/rest_sync/api_client.py +1 -1
- h2ogpte/rest_sync/configuration.py +1 -1
- h2ogpte/rest_sync/models/user_permission.py +5 -3
- h2ogpte/session.py +1 -0
- h2ogpte/session_async.py +1 -0
- h2ogpte/types.py +3 -0
- {h2ogpte-1.6.43rc7.dist-info → h2ogpte-1.6.44rc6.dist-info}/METADATA +1 -1
- {h2ogpte-1.6.43rc7.dist-info → h2ogpte-1.6.44rc6.dist-info}/RECORD +21 -21
- {h2ogpte-1.6.43rc7.dist-info → h2ogpte-1.6.44rc6.dist-info}/WHEEL +0 -0
- {h2ogpte-1.6.43rc7.dist-info → h2ogpte-1.6.44rc6.dist-info}/entry_points.txt +0 -0
- {h2ogpte-1.6.43rc7.dist-info → h2ogpte-1.6.44rc6.dist-info}/top_level.txt +0 -0
h2ogpte/__init__.py
CHANGED
h2ogpte/h2ogpte.py
CHANGED
|
@@ -6389,6 +6389,22 @@ class H2OGPTE(H2OGPTESyncBase):
|
|
|
6389
6389
|
)
|
|
6390
6390
|
return result
|
|
6391
6391
|
|
|
6392
|
+
def remove_permissions_from_role(
|
|
6393
|
+
self, role_id: str, permission_name: str
|
|
6394
|
+
) -> Result:
|
|
6395
|
+
header = self._get_auth_header()
|
|
6396
|
+
with self._RESTClient(self) as rest_client:
|
|
6397
|
+
result = _get_result(
|
|
6398
|
+
lambda: _rest_to_client_exceptions(
|
|
6399
|
+
lambda: rest_client.permission_api.remove_permission_from_role(
|
|
6400
|
+
role_id=role_id,
|
|
6401
|
+
permission_name=permission_name,
|
|
6402
|
+
_headers=header,
|
|
6403
|
+
)
|
|
6404
|
+
)
|
|
6405
|
+
)
|
|
6406
|
+
return result
|
|
6407
|
+
|
|
6392
6408
|
def set_global_configuration(
|
|
6393
6409
|
self,
|
|
6394
6410
|
key_name: str,
|
|
@@ -6927,6 +6943,37 @@ class H2OGPTE(H2OGPTESyncBase):
|
|
|
6927
6943
|
)
|
|
6928
6944
|
|
|
6929
6945
|
def add_agent_key(self, agent_keys: List[dict]) -> List[dict]:
|
|
6946
|
+
"""Create one or more agent keys for use with agent tools.
|
|
6947
|
+
|
|
6948
|
+
Processes a list of agent key configurations and creates each key.
|
|
6949
|
+
Continues processing remaining keys if individual key creation fails.
|
|
6950
|
+
|
|
6951
|
+
Args:
|
|
6952
|
+
agent_keys: List of key configuration dictionaries.
|
|
6953
|
+
|
|
6954
|
+
Expected structure::
|
|
6955
|
+
|
|
6956
|
+
[
|
|
6957
|
+
{
|
|
6958
|
+
"name": str,
|
|
6959
|
+
# Display name for the key
|
|
6960
|
+
|
|
6961
|
+
"value": str,
|
|
6962
|
+
# The actual key/token value
|
|
6963
|
+
|
|
6964
|
+
"key_type": str,
|
|
6965
|
+
# Type of key ("private" or "shared")
|
|
6966
|
+
|
|
6967
|
+
"description": str,
|
|
6968
|
+
# (Optional) Description of the key's purpose
|
|
6969
|
+
}
|
|
6970
|
+
]
|
|
6971
|
+
|
|
6972
|
+
Returns:
|
|
6973
|
+
List[dict]: List of created key results. Each successful creation
|
|
6974
|
+
returns {"agent_key_id": str}. Failed creations are logged but
|
|
6975
|
+
don't appear in results.
|
|
6976
|
+
"""
|
|
6930
6977
|
result = []
|
|
6931
6978
|
header = self._get_auth_header()
|
|
6932
6979
|
with self._RESTClient(self) as rest_client:
|
|
@@ -6993,6 +7040,29 @@ class H2OGPTE(H2OGPTESyncBase):
|
|
|
6993
7040
|
def assign_agent_key_for_tool(
|
|
6994
7041
|
self, tool_dict_list: List[dict]
|
|
6995
7042
|
) -> Optional[List[Tuple]]:
|
|
7043
|
+
"""Assign agent keys to tools by creating associations between them.
|
|
7044
|
+
|
|
7045
|
+
Args:
|
|
7046
|
+
tool_dict_list: List of dictionaries containing tool association data.
|
|
7047
|
+
Each dictionary should have a "tool_dict" key with the association
|
|
7048
|
+
configuration data for creating agent tool key associations.
|
|
7049
|
+
|
|
7050
|
+
Expected tool_dict structure::
|
|
7051
|
+
|
|
7052
|
+
{
|
|
7053
|
+
"tool": str, # Name of the tool (for example, "test_tool").
|
|
7054
|
+
"keys": list[dict], # List of key definitions. Each item is a dictionary with:
|
|
7055
|
+
# - "name": str
|
|
7056
|
+
# Environment variable name (for example, "TEST_KEY").
|
|
7057
|
+
# - "key_id": Any
|
|
7058
|
+
# Identifier assigned to the key (for example, agent_key_id).
|
|
7059
|
+
}
|
|
7060
|
+
|
|
7061
|
+
Returns:
|
|
7062
|
+
Optional[List[Tuple]]: List of tuples containing association details.
|
|
7063
|
+
Each tuple contains (associate_id, tool, key_name, key_id, user_id).
|
|
7064
|
+
Returns None if no associations were created.
|
|
7065
|
+
"""
|
|
6996
7066
|
result = []
|
|
6997
7067
|
header = self._get_auth_header()
|
|
6998
7068
|
with self._RESTClient(self) as rest_client:
|
h2ogpte/h2ogpte_async.py
CHANGED
|
@@ -6650,6 +6650,22 @@ class H2OGPTEAsync:
|
|
|
6650
6650
|
)
|
|
6651
6651
|
return result
|
|
6652
6652
|
|
|
6653
|
+
async def remove_permissions_from_role(
|
|
6654
|
+
self, role_id: str, permission_name: str
|
|
6655
|
+
) -> Result:
|
|
6656
|
+
header = await self._get_auth_header()
|
|
6657
|
+
async with self._RESTClient(self) as rest_client:
|
|
6658
|
+
result = await _get_result(
|
|
6659
|
+
_rest_to_client_exceptions(
|
|
6660
|
+
rest_client.permission_api.remove_permission_from_role(
|
|
6661
|
+
role_id=role_id,
|
|
6662
|
+
permission_name=permission_name,
|
|
6663
|
+
_headers=header,
|
|
6664
|
+
)
|
|
6665
|
+
)
|
|
6666
|
+
)
|
|
6667
|
+
return result
|
|
6668
|
+
|
|
6653
6669
|
async def set_global_configuration(
|
|
6654
6670
|
self,
|
|
6655
6671
|
key_name: str,
|
|
@@ -7184,6 +7200,37 @@ class H2OGPTEAsync:
|
|
|
7184
7200
|
)
|
|
7185
7201
|
|
|
7186
7202
|
async def add_agent_key(self, agent_keys: List[dict]) -> List[dict]:
|
|
7203
|
+
"""Create one or more agent keys for use with agent tools.
|
|
7204
|
+
|
|
7205
|
+
Processes a list of agent key configurations and creates each key.
|
|
7206
|
+
Continues processing remaining keys if individual key creation fails.
|
|
7207
|
+
|
|
7208
|
+
Args:
|
|
7209
|
+
agent_keys: List of key configuration dictionaries.
|
|
7210
|
+
|
|
7211
|
+
Expected structure::
|
|
7212
|
+
|
|
7213
|
+
[
|
|
7214
|
+
{
|
|
7215
|
+
"name": str,
|
|
7216
|
+
# Display name for the key
|
|
7217
|
+
|
|
7218
|
+
"value": str,
|
|
7219
|
+
# The actual key/token value
|
|
7220
|
+
|
|
7221
|
+
"key_type": str,
|
|
7222
|
+
# Type of key ("private" or "shared")
|
|
7223
|
+
|
|
7224
|
+
"description": str,
|
|
7225
|
+
# (Optional) Description of the key's purpose
|
|
7226
|
+
}
|
|
7227
|
+
]
|
|
7228
|
+
|
|
7229
|
+
Returns:
|
|
7230
|
+
List[dict]: List of created key results. Each successful creation
|
|
7231
|
+
returns {"agent_key_id": str}. Failed creations are logged but
|
|
7232
|
+
don't appear in results.
|
|
7233
|
+
"""
|
|
7187
7234
|
result = []
|
|
7188
7235
|
header = await self._get_auth_header()
|
|
7189
7236
|
async with self._RESTClient(self) as rest_client:
|
|
@@ -7250,6 +7297,29 @@ class H2OGPTEAsync:
|
|
|
7250
7297
|
async def assign_agent_key_for_tool(
|
|
7251
7298
|
self, tool_dict_list: List[dict]
|
|
7252
7299
|
) -> Optional[List[Tuple]]:
|
|
7300
|
+
"""Assign agent keys to tools by creating associations between them.
|
|
7301
|
+
|
|
7302
|
+
Args:
|
|
7303
|
+
tool_dict_list: List of dictionaries containing tool association data.
|
|
7304
|
+
Each dictionary should have a "tool_dict" key with the association
|
|
7305
|
+
configuration data for creating agent tool key associations.
|
|
7306
|
+
|
|
7307
|
+
Expected tool_dict structure::
|
|
7308
|
+
|
|
7309
|
+
{
|
|
7310
|
+
"tool": str, # Name of the tool (for example, "test_tool").
|
|
7311
|
+
"keys": list[dict], # List of key definitions. Each item is a dictionary with:
|
|
7312
|
+
# - "name": str
|
|
7313
|
+
# Environment variable name (for example, "TEST_KEY").
|
|
7314
|
+
# - "key_id": Any
|
|
7315
|
+
# Identifier assigned to the key (for example, agent_key_id).
|
|
7316
|
+
}
|
|
7317
|
+
|
|
7318
|
+
Returns:
|
|
7319
|
+
Optional[List[Tuple]]: List of tuples containing association details.
|
|
7320
|
+
Each tuple contains (associate_id, tool, key_name, key_id, user_id).
|
|
7321
|
+
Returns None if no associations were created.
|
|
7322
|
+
"""
|
|
7253
7323
|
result = []
|
|
7254
7324
|
header = await self._get_auth_header()
|
|
7255
7325
|
async with self._RESTClient(self) as rest_client:
|
h2ogpte/rest_async/__init__.py
CHANGED
|
@@ -7082,7 +7082,7 @@ class PermissionsApi:
|
|
|
7082
7082
|
@validate_call
|
|
7083
7083
|
async def remove_permission_from_role(
|
|
7084
7084
|
self,
|
|
7085
|
-
role_id: Annotated[StrictStr, Field(description="The unique identifier of
|
|
7085
|
+
role_id: Annotated[StrictStr, Field(description="The unique identifier of the role.")],
|
|
7086
7086
|
permission_name: Annotated[StrictStr, Field(description="The permission name.")],
|
|
7087
7087
|
_request_timeout: Union[
|
|
7088
7088
|
None,
|
|
@@ -7101,7 +7101,7 @@ class PermissionsApi:
|
|
|
7101
7101
|
|
|
7102
7102
|
Removes permission from a given role.
|
|
7103
7103
|
|
|
7104
|
-
:param role_id: The unique identifier of
|
|
7104
|
+
:param role_id: The unique identifier of the role. (required)
|
|
7105
7105
|
:type role_id: str
|
|
7106
7106
|
:param permission_name: The permission name. (required)
|
|
7107
7107
|
:type permission_name: str
|
|
@@ -7155,7 +7155,7 @@ class PermissionsApi:
|
|
|
7155
7155
|
@validate_call
|
|
7156
7156
|
async def remove_permission_from_role_with_http_info(
|
|
7157
7157
|
self,
|
|
7158
|
-
role_id: Annotated[StrictStr, Field(description="The unique identifier of
|
|
7158
|
+
role_id: Annotated[StrictStr, Field(description="The unique identifier of the role.")],
|
|
7159
7159
|
permission_name: Annotated[StrictStr, Field(description="The permission name.")],
|
|
7160
7160
|
_request_timeout: Union[
|
|
7161
7161
|
None,
|
|
@@ -7174,7 +7174,7 @@ class PermissionsApi:
|
|
|
7174
7174
|
|
|
7175
7175
|
Removes permission from a given role.
|
|
7176
7176
|
|
|
7177
|
-
:param role_id: The unique identifier of
|
|
7177
|
+
:param role_id: The unique identifier of the role. (required)
|
|
7178
7178
|
:type role_id: str
|
|
7179
7179
|
:param permission_name: The permission name. (required)
|
|
7180
7180
|
:type permission_name: str
|
|
@@ -7228,7 +7228,7 @@ class PermissionsApi:
|
|
|
7228
7228
|
@validate_call
|
|
7229
7229
|
async def remove_permission_from_role_without_preload_content(
|
|
7230
7230
|
self,
|
|
7231
|
-
role_id: Annotated[StrictStr, Field(description="The unique identifier of
|
|
7231
|
+
role_id: Annotated[StrictStr, Field(description="The unique identifier of the role.")],
|
|
7232
7232
|
permission_name: Annotated[StrictStr, Field(description="The permission name.")],
|
|
7233
7233
|
_request_timeout: Union[
|
|
7234
7234
|
None,
|
|
@@ -7247,7 +7247,7 @@ class PermissionsApi:
|
|
|
7247
7247
|
|
|
7248
7248
|
Removes permission from a given role.
|
|
7249
7249
|
|
|
7250
|
-
:param role_id: The unique identifier of
|
|
7250
|
+
:param role_id: The unique identifier of the role. (required)
|
|
7251
7251
|
:type role_id: str
|
|
7252
7252
|
:param permission_name: The permission name. (required)
|
|
7253
7253
|
:type permission_name: str
|
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.
|
|
93
|
+
self.user_agent = 'OpenAPI-Generator/1.6.44-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.
|
|
502
|
+
"SDK Package Version: 1.6.44-dev6".\
|
|
503
503
|
format(env=sys.platform, pyversion=sys.version)
|
|
504
504
|
|
|
505
505
|
def get_host_settings(self) -> List[HostSetting]:
|
|
@@ -17,7 +17,7 @@ import pprint
|
|
|
17
17
|
import re # noqa: F401
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
|
-
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
21
21
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
22
|
from typing import Optional, Set
|
|
23
23
|
from typing_extensions import Self
|
|
@@ -30,7 +30,8 @@ class UserPermission(BaseModel):
|
|
|
30
30
|
name: StrictStr
|
|
31
31
|
description: Optional[StrictStr] = None
|
|
32
32
|
category: Optional[StrictStr] = None
|
|
33
|
-
|
|
33
|
+
dependencies: Optional[List[StrictStr]] = Field(default=None, description="List of permissions that this permission depends on.")
|
|
34
|
+
__properties: ClassVar[List[str]] = ["id", "name", "description", "category", "dependencies"]
|
|
34
35
|
|
|
35
36
|
model_config = ConfigDict(
|
|
36
37
|
populate_by_name=True,
|
|
@@ -86,7 +87,8 @@ class UserPermission(BaseModel):
|
|
|
86
87
|
"id": obj.get("id"),
|
|
87
88
|
"name": obj.get("name"),
|
|
88
89
|
"description": obj.get("description"),
|
|
89
|
-
"category": obj.get("category")
|
|
90
|
+
"category": obj.get("category"),
|
|
91
|
+
"dependencies": obj.get("dependencies")
|
|
90
92
|
})
|
|
91
93
|
return _obj
|
|
92
94
|
|
h2ogpte/rest_sync/__init__.py
CHANGED
|
@@ -7082,7 +7082,7 @@ class PermissionsApi:
|
|
|
7082
7082
|
@validate_call
|
|
7083
7083
|
def remove_permission_from_role(
|
|
7084
7084
|
self,
|
|
7085
|
-
role_id: Annotated[StrictStr, Field(description="The unique identifier of
|
|
7085
|
+
role_id: Annotated[StrictStr, Field(description="The unique identifier of the role.")],
|
|
7086
7086
|
permission_name: Annotated[StrictStr, Field(description="The permission name.")],
|
|
7087
7087
|
_request_timeout: Union[
|
|
7088
7088
|
None,
|
|
@@ -7101,7 +7101,7 @@ class PermissionsApi:
|
|
|
7101
7101
|
|
|
7102
7102
|
Removes permission from a given role.
|
|
7103
7103
|
|
|
7104
|
-
:param role_id: The unique identifier of
|
|
7104
|
+
:param role_id: The unique identifier of the role. (required)
|
|
7105
7105
|
:type role_id: str
|
|
7106
7106
|
:param permission_name: The permission name. (required)
|
|
7107
7107
|
:type permission_name: str
|
|
@@ -7155,7 +7155,7 @@ class PermissionsApi:
|
|
|
7155
7155
|
@validate_call
|
|
7156
7156
|
def remove_permission_from_role_with_http_info(
|
|
7157
7157
|
self,
|
|
7158
|
-
role_id: Annotated[StrictStr, Field(description="The unique identifier of
|
|
7158
|
+
role_id: Annotated[StrictStr, Field(description="The unique identifier of the role.")],
|
|
7159
7159
|
permission_name: Annotated[StrictStr, Field(description="The permission name.")],
|
|
7160
7160
|
_request_timeout: Union[
|
|
7161
7161
|
None,
|
|
@@ -7174,7 +7174,7 @@ class PermissionsApi:
|
|
|
7174
7174
|
|
|
7175
7175
|
Removes permission from a given role.
|
|
7176
7176
|
|
|
7177
|
-
:param role_id: The unique identifier of
|
|
7177
|
+
:param role_id: The unique identifier of the role. (required)
|
|
7178
7178
|
:type role_id: str
|
|
7179
7179
|
:param permission_name: The permission name. (required)
|
|
7180
7180
|
:type permission_name: str
|
|
@@ -7228,7 +7228,7 @@ class PermissionsApi:
|
|
|
7228
7228
|
@validate_call
|
|
7229
7229
|
def remove_permission_from_role_without_preload_content(
|
|
7230
7230
|
self,
|
|
7231
|
-
role_id: Annotated[StrictStr, Field(description="The unique identifier of
|
|
7231
|
+
role_id: Annotated[StrictStr, Field(description="The unique identifier of the role.")],
|
|
7232
7232
|
permission_name: Annotated[StrictStr, Field(description="The permission name.")],
|
|
7233
7233
|
_request_timeout: Union[
|
|
7234
7234
|
None,
|
|
@@ -7247,7 +7247,7 @@ class PermissionsApi:
|
|
|
7247
7247
|
|
|
7248
7248
|
Removes permission from a given role.
|
|
7249
7249
|
|
|
7250
|
-
:param role_id: The unique identifier of
|
|
7250
|
+
:param role_id: The unique identifier of the role. (required)
|
|
7251
7251
|
:type role_id: str
|
|
7252
7252
|
:param permission_name: The permission name. (required)
|
|
7253
7253
|
:type permission_name: str
|
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.
|
|
93
|
+
self.user_agent = 'OpenAPI-Generator/1.6.44-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.
|
|
506
|
+
"SDK Package Version: 1.6.44-dev6".\
|
|
507
507
|
format(env=sys.platform, pyversion=sys.version)
|
|
508
508
|
|
|
509
509
|
def get_host_settings(self) -> List[HostSetting]:
|
|
@@ -17,7 +17,7 @@ import pprint
|
|
|
17
17
|
import re # noqa: F401
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
|
-
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
21
21
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
22
|
from typing import Optional, Set
|
|
23
23
|
from typing_extensions import Self
|
|
@@ -30,7 +30,8 @@ class UserPermission(BaseModel):
|
|
|
30
30
|
name: StrictStr
|
|
31
31
|
description: Optional[StrictStr] = None
|
|
32
32
|
category: Optional[StrictStr] = None
|
|
33
|
-
|
|
33
|
+
dependencies: Optional[List[StrictStr]] = Field(default=None, description="List of permissions that this permission depends on.")
|
|
34
|
+
__properties: ClassVar[List[str]] = ["id", "name", "description", "category", "dependencies"]
|
|
34
35
|
|
|
35
36
|
model_config = ConfigDict(
|
|
36
37
|
populate_by_name=True,
|
|
@@ -86,7 +87,8 @@ class UserPermission(BaseModel):
|
|
|
86
87
|
"id": obj.get("id"),
|
|
87
88
|
"name": obj.get("name"),
|
|
88
89
|
"description": obj.get("description"),
|
|
89
|
-
"category": obj.get("category")
|
|
90
|
+
"category": obj.get("category"),
|
|
91
|
+
"dependencies": obj.get("dependencies")
|
|
90
92
|
})
|
|
91
93
|
return _obj
|
|
92
94
|
|
h2ogpte/session.py
CHANGED
|
@@ -149,6 +149,7 @@ class Session:
|
|
|
149
149
|
ssl_context=ssl_context,
|
|
150
150
|
open_timeout=self._open_timeout,
|
|
151
151
|
close_timeout=self._close_timeout,
|
|
152
|
+
max_size=5 * 1024 * 1024, # 5 MB limit for large responses
|
|
152
153
|
)
|
|
153
154
|
return self._connection
|
|
154
155
|
except (ConnectionClosedError, InvalidURI, InvalidHandshake) as e:
|
h2ogpte/session_async.py
CHANGED
|
@@ -478,6 +478,7 @@ class SessionAsync:
|
|
|
478
478
|
open_timeout=self._open_timeout,
|
|
479
479
|
close_timeout=self._close_timeout,
|
|
480
480
|
ssl=ssl_context,
|
|
481
|
+
max_size=5 * 1024 * 1024, # 5 MB limit for large responses
|
|
481
482
|
)
|
|
482
483
|
return self._websocket
|
|
483
484
|
except (ConnectionClosedError, InvalidURI, InvalidHandshake) as e:
|
h2ogpte/types.py
CHANGED
|
@@ -123,6 +123,8 @@ class ChatMessageFull(BaseModel):
|
|
|
123
123
|
type_list: Optional[List[ChatMessageMeta]] = []
|
|
124
124
|
has_references: bool
|
|
125
125
|
total_references: int
|
|
126
|
+
collection_id: Optional[str] = None
|
|
127
|
+
collection_name: Optional[str] = None
|
|
126
128
|
error: Optional[str] = None
|
|
127
129
|
|
|
128
130
|
|
|
@@ -382,6 +384,7 @@ class UserPermission(BaseModel):
|
|
|
382
384
|
name: str
|
|
383
385
|
description: Optional[str] = None
|
|
384
386
|
category: Optional[str] = None
|
|
387
|
+
dependencies: Optional[List[str]] = None
|
|
385
388
|
|
|
386
389
|
|
|
387
390
|
class UserRole(BaseModel):
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
h2ogpte/__init__.py,sha256=
|
|
1
|
+
h2ogpte/__init__.py,sha256=Ix9s7mV88gTJIRCD3Y9U_P5iDCrkHTPVWW1N5uB1WX0,1524
|
|
2
2
|
h2ogpte/connectors.py,sha256=vkILsfW-tsLUn6KB6zgu_kjps4NMGgJpZ3OOaIjji04,8057
|
|
3
3
|
h2ogpte/errors.py,sha256=XgLdfJO1fZ9Bf9rhUKpnvRzzvkNyan3Oc6WzGS6hCUA,1248
|
|
4
|
-
h2ogpte/h2ogpte.py,sha256=
|
|
5
|
-
h2ogpte/h2ogpte_async.py,sha256=
|
|
4
|
+
h2ogpte/h2ogpte.py,sha256=K3W8gXrHr1K68244xIh9myDOR0mzdkQLTDnkIdxSTc4,308848
|
|
5
|
+
h2ogpte/h2ogpte_async.py,sha256=QIiNhezH9d2FF7wowOcZdswvYSHJ-6OXUHe3BP1r4kg,328753
|
|
6
6
|
h2ogpte/h2ogpte_sync_base.py,sha256=ftsVzpMqEsyi0UACMI-7H_EIYEx9JEdEUImbyjWy_Hc,15285
|
|
7
|
-
h2ogpte/session.py,sha256=
|
|
8
|
-
h2ogpte/session_async.py,sha256
|
|
7
|
+
h2ogpte/session.py,sha256=BqJg3mWVeyz_ZLUJC_olzZzeLnRSaJwCH1NkXXfhg54,32608
|
|
8
|
+
h2ogpte/session_async.py,sha256=UzNijTn3kZjAUYl_Jn5Oji4QrPTOpdX9KKByTmhLlK8,31354
|
|
9
9
|
h2ogpte/shared_client.py,sha256=Zh24myL--5JDdrKoJPW4aeprHX6a_oB9o461Ho3hnU8,14691
|
|
10
|
-
h2ogpte/types.py,sha256=
|
|
10
|
+
h2ogpte/types.py,sha256=es2xD57bnsnZFq4GcVKcd1pA6nGSiITGAhe24U-QOD8,15353
|
|
11
11
|
h2ogpte/utils.py,sha256=Z9n57xxPu0KtsCzkJ9V_VgTW--oG_aXTLBgmXDWSdnM,3201
|
|
12
12
|
h2ogpte/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
13
13
|
h2ogpte/cli/main.py,sha256=Upf3t_5m1RqLh1jKGB6Gbyp3n9sujVny7sY-qxh2PYo,2722
|
|
@@ -41,10 +41,10 @@ h2ogpte/cli/ui/prompts.py,sha256=bJvRe_32KppQTK5bqnsrPh0RS4JaY9KkiV7y-3v8PMQ,538
|
|
|
41
41
|
h2ogpte/cli/ui/status_bar.py,sha256=hs2MLvkg-y3Aiu3gWRtgMXf3jv3DGe7Y47ucgoBAP7Y,3852
|
|
42
42
|
h2ogpte/cli/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
43
43
|
h2ogpte/cli/utils/file_manager.py,sha256=ghNDX6G3Dr0vFvBYjbqx5o7qxq-pN8Vo2Rp1vyITfLo,13988
|
|
44
|
-
h2ogpte/rest_async/__init__.py,sha256=
|
|
45
|
-
h2ogpte/rest_async/api_client.py,sha256=
|
|
44
|
+
h2ogpte/rest_async/__init__.py,sha256=9reksIT3P7gEDM8krgRey-5hM5sug7v9h50N9XAtDi4,15203
|
|
45
|
+
h2ogpte/rest_async/api_client.py,sha256=3WugXotxD2f57OMUqPq77lQOqyAmGnadbfazsZFnIOg,29510
|
|
46
46
|
h2ogpte/rest_async/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
|
|
47
|
-
h2ogpte/rest_async/configuration.py,sha256=
|
|
47
|
+
h2ogpte/rest_async/configuration.py,sha256=UOVg3Z_EFQzjEgd97BhcP1dbukSL-n51-EKxyc2dimc,19567
|
|
48
48
|
h2ogpte/rest_async/exceptions.py,sha256=aSDc-0lURtyQjf5HGa7_Ta0nATxKxfHW3huDA2Zdj6o,8370
|
|
49
49
|
h2ogpte/rest_async/rest.py,sha256=mdjDwzJ1kiaYtONUfDRqKsRPw5-tG6eyZV2P1yBuwRo,9147
|
|
50
50
|
h2ogpte/rest_async/api/__init__.py,sha256=R_x57GGyaSgxZyrJOyOt551TodbRSQf3T7VrraQc-84,973
|
|
@@ -58,7 +58,7 @@ h2ogpte/rest_async/api/documents_api.py,sha256=X-w5x4bX2wHXlxb_97XgWdgNi5qAkdkso
|
|
|
58
58
|
h2ogpte/rest_async/api/extractors_api.py,sha256=BJXOzn14HruFfkGh0MlXm4zFGoxijcIrA0NZmjru-yE,161348
|
|
59
59
|
h2ogpte/rest_async/api/jobs_api.py,sha256=xXxqeDGy3ZA9KTF0Aowd5Rlt-gu2mXfD1S5Y6_-ST68,72519
|
|
60
60
|
h2ogpte/rest_async/api/models_api.py,sha256=oSJgvLsjPypYs3gIwElCl1IFx_gvjSokNTstHvWl5rM,221092
|
|
61
|
-
h2ogpte/rest_async/api/permissions_api.py,sha256=
|
|
61
|
+
h2ogpte/rest_async/api/permissions_api.py,sha256=FxkEMIhKZWyw0KMCYU78nspcFcMs4ppiK8GjFE1nIVI,369448
|
|
62
62
|
h2ogpte/rest_async/api/prompt_templates_api.py,sha256=RJnYC3jfhvx2L_vpTlU6kCqujs55aPf0kSDe0AG1zow,226547
|
|
63
63
|
h2ogpte/rest_async/api/secrets_api.py,sha256=MTtmpYO2IOXuCklK-BxVyF9aBNZebgWuQenada-uM7o,68122
|
|
64
64
|
h2ogpte/rest_async/api/system_api.py,sha256=wXxO1lFEnrPHO0JRCgg13j6CpRKb3nou81dk8nA31v0,12532
|
|
@@ -200,11 +200,11 @@ h2ogpte/rest_async/models/user_configuration_item.py,sha256=hDcCkPjzWeFIu1iGgPpW
|
|
|
200
200
|
h2ogpte/rest_async/models/user_deletion_request.py,sha256=z7gD8XKOGwwg782TRzXJiiPOZS2QPW8qQk3vEZdwslQ,4536
|
|
201
201
|
h2ogpte/rest_async/models/user_info.py,sha256=ef59Eh9k42JUY3X2RnCrwYR7sc_8lXT1vRLGoNz3uTU,4489
|
|
202
202
|
h2ogpte/rest_async/models/user_job_details.py,sha256=kzu8fLxVsRMgnyt6dLr0VWjlIoE3i1VRpGR9nDxFyk4,4985
|
|
203
|
-
h2ogpte/rest_async/models/user_permission.py,sha256=
|
|
204
|
-
h2ogpte/rest_sync/__init__.py,sha256=
|
|
205
|
-
h2ogpte/rest_sync/api_client.py,sha256=
|
|
203
|
+
h2ogpte/rest_async/models/user_permission.py,sha256=1k74E7s2kD2waSZ79KPlgTupVYEacTKWMqcKxv2972A,4856
|
|
204
|
+
h2ogpte/rest_sync/__init__.py,sha256=X9-WJtgMWJ2px2jeWaWkwKIu9dk8jNVcQe6g_EYPors,15042
|
|
205
|
+
h2ogpte/rest_sync/api_client.py,sha256=2_uN89Z_ESjAmevS0hYHKzcq3GuxCSjr6NMA9O-XAlg,29397
|
|
206
206
|
h2ogpte/rest_sync/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
|
|
207
|
-
h2ogpte/rest_sync/configuration.py,sha256=
|
|
207
|
+
h2ogpte/rest_sync/configuration.py,sha256=aeg0VuYA7yiV3xfBLBxbT7mzb9XO-SXg3DfEcTUjCPg,19850
|
|
208
208
|
h2ogpte/rest_sync/exceptions.py,sha256=aSDc-0lURtyQjf5HGa7_Ta0nATxKxfHW3huDA2Zdj6o,8370
|
|
209
209
|
h2ogpte/rest_sync/rest.py,sha256=evRzviTYC_fsrpTtFlGvruXmquH9C0jDn-oQrGrE5A0,11314
|
|
210
210
|
h2ogpte/rest_sync/api/__init__.py,sha256=ZuLQQtyiXnP5UOwTlIOYLGLQq1BG_0PEkzC9s698vjM,958
|
|
@@ -218,7 +218,7 @@ h2ogpte/rest_sync/api/documents_api.py,sha256=qRDBXrQaZWp_hGxg-7mqAFUMeeWd1EB2M_
|
|
|
218
218
|
h2ogpte/rest_sync/api/extractors_api.py,sha256=Dz7RCbNRIuraNszzMOLVYzBxwMJwFsqwFIXreMr7B-Y,160666
|
|
219
219
|
h2ogpte/rest_sync/api/jobs_api.py,sha256=LM9erEymF1SgEg8j4ePeNbUeJtwAGTMCI3Z4zRESehE,72177
|
|
220
220
|
h2ogpte/rest_sync/api/models_api.py,sha256=a5DuGNAEXeynqnPuFcvIWHtIBYfGKhn5uFi43aXSBgA,220111
|
|
221
|
-
h2ogpte/rest_sync/api/permissions_api.py,sha256=
|
|
221
|
+
h2ogpte/rest_sync/api/permissions_api.py,sha256=U4FSIKlUrWsQ1mRvEC1vVhPdUbCkODSNhR1Eb0vSFzU,367801
|
|
222
222
|
h2ogpte/rest_sync/api/prompt_templates_api.py,sha256=157y9lzY7Ky_ALu8TEemi0rfYzXrd4SJU1GxooXGJdg,225622
|
|
223
223
|
h2ogpte/rest_sync/api/secrets_api.py,sha256=5rAikvrX7n3Cj9M0ME-cPjISLpqrEFh2LmW23mvGk4g,67828
|
|
224
224
|
h2ogpte/rest_sync/api/system_api.py,sha256=knhP97lzeZt-YFTpcNJm9NdnqjoSg_Oh0yMGowiV1IM,12480
|
|
@@ -360,9 +360,9 @@ h2ogpte/rest_sync/models/user_configuration_item.py,sha256=hDcCkPjzWeFIu1iGgPpWM
|
|
|
360
360
|
h2ogpte/rest_sync/models/user_deletion_request.py,sha256=z7gD8XKOGwwg782TRzXJiiPOZS2QPW8qQk3vEZdwslQ,4536
|
|
361
361
|
h2ogpte/rest_sync/models/user_info.py,sha256=ef59Eh9k42JUY3X2RnCrwYR7sc_8lXT1vRLGoNz3uTU,4489
|
|
362
362
|
h2ogpte/rest_sync/models/user_job_details.py,sha256=9cbhpgLMDpar-aTOaY5Ygud-8Kbi23cLNldTGab0Sd8,4984
|
|
363
|
-
h2ogpte/rest_sync/models/user_permission.py,sha256=
|
|
364
|
-
h2ogpte-1.6.
|
|
365
|
-
h2ogpte-1.6.
|
|
366
|
-
h2ogpte-1.6.
|
|
367
|
-
h2ogpte-1.6.
|
|
368
|
-
h2ogpte-1.6.
|
|
363
|
+
h2ogpte/rest_sync/models/user_permission.py,sha256=1k74E7s2kD2waSZ79KPlgTupVYEacTKWMqcKxv2972A,4856
|
|
364
|
+
h2ogpte-1.6.44rc6.dist-info/METADATA,sha256=q-vXm3EGmmy8oyF83AhaQYJtMGKdogZgNLOuI5EAsGY,8615
|
|
365
|
+
h2ogpte-1.6.44rc6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
366
|
+
h2ogpte-1.6.44rc6.dist-info/entry_points.txt,sha256=BlaqX2SXJanrOGqNYwnzvCxHGNadM7RBI4pW4rVo5z4,54
|
|
367
|
+
h2ogpte-1.6.44rc6.dist-info/top_level.txt,sha256=vXV4JnNwFWFAqTWyHrH-cGIQqbCcEDG9-BbyNn58JpM,8
|
|
368
|
+
h2ogpte-1.6.44rc6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|