sunholo 0.71.12__py3-none-any.whl → 0.71.13__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/__init__.py +1 -1
- sunholo/vertex/init.py +13 -0
- {sunholo-0.71.12.dist-info → sunholo-0.71.13.dist-info}/METADATA +2 -2
- {sunholo-0.71.12.dist-info → sunholo-0.71.13.dist-info}/RECORD +8 -8
- {sunholo-0.71.12.dist-info → sunholo-0.71.13.dist-info}/LICENSE.txt +0 -0
- {sunholo-0.71.12.dist-info → sunholo-0.71.13.dist-info}/WHEEL +0 -0
- {sunholo-0.71.12.dist-info → sunholo-0.71.13.dist-info}/entry_points.txt +0 -0
- {sunholo-0.71.12.dist-info → sunholo-0.71.13.dist-info}/top_level.txt +0 -0
sunholo/vertex/__init__.py
CHANGED
sunholo/vertex/init.py
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
from ..logging import log
|
|
2
2
|
from ..utils.gcp_project import get_gcp_project
|
|
3
|
+
import os
|
|
4
|
+
|
|
5
|
+
def init_genai():
|
|
6
|
+
try:
|
|
7
|
+
import google.generativeai as genai
|
|
8
|
+
except ImportError:
|
|
9
|
+
raise ImportError("google.generativeai not installed, please install via 'pip install sunholo[gcp]")
|
|
10
|
+
|
|
11
|
+
GOOGLE_API_KEY=os.getenv('GOOGLE_API_KEY')
|
|
12
|
+
if not GOOGLE_API_KEY:
|
|
13
|
+
raise ValueError("google.generativeai needs GOOGLE_API_KEY set in environment variable")
|
|
14
|
+
|
|
15
|
+
genai.configure(api_key=GOOGLE_API_KEY)
|
|
3
16
|
|
|
4
17
|
def init_vertex(gcp_config=None, location="eu"):
|
|
5
18
|
"""
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: sunholo
|
|
3
|
-
Version: 0.71.
|
|
3
|
+
Version: 0.71.13
|
|
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.71.
|
|
6
|
+
Download-URL: https://github.com/sunholo-data/sunholo-py/archive/refs/tags/v0.71.13.tar.gz
|
|
7
7
|
Author: Holosun ApS
|
|
8
8
|
Author-email: multivac@sunholo.com
|
|
9
9
|
License: Apache License, Version 2.0
|
|
@@ -109,15 +109,15 @@ sunholo/utils/parsers.py,sha256=z98cQ1v2_ScnqHxCtApNeAN2the8MdvS6RpKL6vWyOU,5287
|
|
|
109
109
|
sunholo/utils/timedelta.py,sha256=BbLabEx7_rbErj_YbNM0MBcaFN76DC4PTe4zD2ucezg,493
|
|
110
110
|
sunholo/utils/user_ids.py,sha256=SQd5_H7FE7vcTZp9AQuQDWBXd4FEEd7TeVMQe1H4Ny8,292
|
|
111
111
|
sunholo/utils/version.py,sha256=P1QAJQdZfT2cMqdTSmXmcxrD2PssMPEGM-WI6083Fck,237
|
|
112
|
-
sunholo/vertex/__init__.py,sha256=
|
|
112
|
+
sunholo/vertex/__init__.py,sha256=4P_H-IOsZTDDVrZtwHn555cphCJAysOXw1OmtSOM4TU,191
|
|
113
113
|
sunholo/vertex/extensions.py,sha256=d-Ikt9gHFf-jUMPmyU-xHwYe22QtEyr90Ua1LDKgTws,11026
|
|
114
114
|
sunholo/vertex/extensions_class.py,sha256=0-XMrMvfhMN380ZdGXl11Mt7R9kCu9rB4Vduiflk8QA,9202
|
|
115
|
-
sunholo/vertex/init.py,sha256=
|
|
115
|
+
sunholo/vertex/init.py,sha256=leY6wmWh75-K88gdRzj_NDQDyg5awf1Fj65aBQ000nY,2465
|
|
116
116
|
sunholo/vertex/memory_tools.py,sha256=FLTbNX_YbpxxUxZHAsXEihlUgLELfLOfxsdEkwDm_GI,6546
|
|
117
117
|
sunholo/vertex/safety.py,sha256=S9PgQT1O_BQAkcqauWncRJaydiP8Q_Jzmu9gxYfy1VA,2482
|
|
118
|
-
sunholo-0.71.
|
|
119
|
-
sunholo-0.71.
|
|
120
|
-
sunholo-0.71.
|
|
121
|
-
sunholo-0.71.
|
|
122
|
-
sunholo-0.71.
|
|
123
|
-
sunholo-0.71.
|
|
118
|
+
sunholo-0.71.13.dist-info/LICENSE.txt,sha256=SdE3QjnD3GEmqqg9EX3TM9f7WmtOzqS1KJve8rhbYmU,11345
|
|
119
|
+
sunholo-0.71.13.dist-info/METADATA,sha256=oISmhbpMaqMh9vuWYxZllZ16DshNx6c7HmT0khw4wug,6759
|
|
120
|
+
sunholo-0.71.13.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
|
|
121
|
+
sunholo-0.71.13.dist-info/entry_points.txt,sha256=bZuN5AIHingMPt4Ro1b_T-FnQvZ3teBes-3OyO0asl4,49
|
|
122
|
+
sunholo-0.71.13.dist-info/top_level.txt,sha256=wt5tadn5--5JrZsjJz2LceoUvcrIvxjHJe-RxuudxAk,8
|
|
123
|
+
sunholo-0.71.13.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|