sunholo 0.75.0__py3-none-any.whl → 0.75.1__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.
- sunholo/vertex/extensions_class.py +6 -2
- {sunholo-0.75.0.dist-info → sunholo-0.75.1.dist-info}/METADATA +2 -2
- {sunholo-0.75.0.dist-info → sunholo-0.75.1.dist-info}/RECORD +7 -7
- {sunholo-0.75.0.dist-info → sunholo-0.75.1.dist-info}/LICENSE.txt +0 -0
- {sunholo-0.75.0.dist-info → sunholo-0.75.1.dist-info}/WHEEL +0 -0
- {sunholo-0.75.0.dist-info → sunholo-0.75.1.dist-info}/entry_points.txt +0 -0
- {sunholo-0.75.0.dist-info → sunholo-0.75.1.dist-info}/top_level.txt +0 -0
|
@@ -88,7 +88,7 @@ class VertexAIExtensions:
|
|
|
88
88
|
from openapi_spec_validator import validate
|
|
89
89
|
from openapi_spec_validator.readers import read_from_filename
|
|
90
90
|
except ImportError:
|
|
91
|
-
raise ImportError("Must have openapi-spec-validator installed - install via `pip install sunholo[tools]`")
|
|
91
|
+
raise ImportError("Must have openapi-spec-validator installed - install via `pip install sunholo'[tools]'`")
|
|
92
92
|
|
|
93
93
|
spec_dict, spec_url = read_from_filename(filename)
|
|
94
94
|
validate(spec_dict)
|
|
@@ -198,6 +198,11 @@ class VertexAIExtensions:
|
|
|
198
198
|
project_id = get_gcp_project()
|
|
199
199
|
extension_name = f"projects/{project_id}/locations/us-central1/extensions/{validate_extension_id(display_name)}"
|
|
200
200
|
|
|
201
|
+
listed_extensions = self.list_extensions()
|
|
202
|
+
for ext in listed_extensions:
|
|
203
|
+
if ext.get('resource_name') == extension_name:
|
|
204
|
+
raise NameError(f"resouce_name {extension_name} already exists. Delete it or rename your new extension")
|
|
205
|
+
|
|
201
206
|
if open_api_file:
|
|
202
207
|
self.upload_openapi_file(open_api_file)
|
|
203
208
|
|
|
@@ -258,7 +263,6 @@ class VertexAIExtensions:
|
|
|
258
263
|
"authType": "OAUTH",
|
|
259
264
|
"oauth_config": {"access_token": f"'{get_local_gcloud_token()}'"}
|
|
260
265
|
}
|
|
261
|
-
log.info(auth_config)
|
|
262
266
|
|
|
263
267
|
response = extension.execute(
|
|
264
268
|
operation_id=operation_id,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: sunholo
|
|
3
|
-
Version: 0.75.
|
|
3
|
+
Version: 0.75.1
|
|
4
4
|
Summary: Large Language Model DevOps - a package to help deploy LLMs to the Cloud.
|
|
5
5
|
Home-page: https://github.com/sunholo-data/sunholo-py
|
|
6
|
-
Download-URL: https://github.com/sunholo-data/sunholo-py/archive/refs/tags/v0.75.
|
|
6
|
+
Download-URL: https://github.com/sunholo-data/sunholo-py/archive/refs/tags/v0.75.1.tar.gz
|
|
7
7
|
Author: Holosun ApS
|
|
8
8
|
Author-email: multivac@sunholo.com
|
|
9
9
|
License: Apache License, Version 2.0
|
|
@@ -114,13 +114,13 @@ sunholo/utils/timedelta.py,sha256=BbLabEx7_rbErj_YbNM0MBcaFN76DC4PTe4zD2ucezg,49
|
|
|
114
114
|
sunholo/utils/user_ids.py,sha256=SQd5_H7FE7vcTZp9AQuQDWBXd4FEEd7TeVMQe1H4Ny8,292
|
|
115
115
|
sunholo/utils/version.py,sha256=P1QAJQdZfT2cMqdTSmXmcxrD2PssMPEGM-WI6083Fck,237
|
|
116
116
|
sunholo/vertex/__init__.py,sha256=XH7FUKxdIgN9H2iDcWxL3sRnVHC3297G24RqEn4Ob0Y,240
|
|
117
|
-
sunholo/vertex/extensions_class.py,sha256=
|
|
117
|
+
sunholo/vertex/extensions_class.py,sha256=vjYOaqU-KQsqkDsJSWBmydzMA-kY-PqZ0j_GUb8ZlNY,16884
|
|
118
118
|
sunholo/vertex/init.py,sha256=-w7b9GKsyJnAJpYHYz6_zBUtmeJeLXlEkgOfwoe4DEI,2715
|
|
119
119
|
sunholo/vertex/memory_tools.py,sha256=pomHrDKqvY8MZxfUqoEwhdlpCvSGP6KmFJMVKOimXjs,6842
|
|
120
120
|
sunholo/vertex/safety.py,sha256=S9PgQT1O_BQAkcqauWncRJaydiP8Q_Jzmu9gxYfy1VA,2482
|
|
121
|
-
sunholo-0.75.
|
|
122
|
-
sunholo-0.75.
|
|
123
|
-
sunholo-0.75.
|
|
124
|
-
sunholo-0.75.
|
|
125
|
-
sunholo-0.75.
|
|
126
|
-
sunholo-0.75.
|
|
121
|
+
sunholo-0.75.1.dist-info/LICENSE.txt,sha256=SdE3QjnD3GEmqqg9EX3TM9f7WmtOzqS1KJve8rhbYmU,11345
|
|
122
|
+
sunholo-0.75.1.dist-info/METADATA,sha256=GDyIzrBHNdyewLXAJ0_PcLkgMlp6scIbI5sEL8izPrY,7010
|
|
123
|
+
sunholo-0.75.1.dist-info/WHEEL,sha256=Z4pYXqR_rTB7OWNDYFOm1qRk0RX6GFP2o8LgvP453Hk,91
|
|
124
|
+
sunholo-0.75.1.dist-info/entry_points.txt,sha256=bZuN5AIHingMPt4Ro1b_T-FnQvZ3teBes-3OyO0asl4,49
|
|
125
|
+
sunholo-0.75.1.dist-info/top_level.txt,sha256=wt5tadn5--5JrZsjJz2LceoUvcrIvxjHJe-RxuudxAk,8
|
|
126
|
+
sunholo-0.75.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|