sunholo 0.71.21__py3-none-any.whl → 0.71.23__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/gcs/add_file.py +6 -0
- sunholo/vertex/extensions_class.py +2 -1
- {sunholo-0.71.21.dist-info → sunholo-0.71.23.dist-info}/METADATA +2 -2
- {sunholo-0.71.21.dist-info → sunholo-0.71.23.dist-info}/RECORD +8 -8
- {sunholo-0.71.21.dist-info → sunholo-0.71.23.dist-info}/LICENSE.txt +0 -0
- {sunholo-0.71.21.dist-info → sunholo-0.71.23.dist-info}/WHEEL +0 -0
- {sunholo-0.71.21.dist-info → sunholo-0.71.23.dist-info}/entry_points.txt +0 -0
- {sunholo-0.71.21.dist-info → sunholo-0.71.23.dist-info}/top_level.txt +0 -0
sunholo/gcs/add_file.py
CHANGED
|
@@ -68,6 +68,9 @@ def handle_base64_image(base64_data: str, vector_name: str, extension: str):
|
|
|
68
68
|
|
|
69
69
|
|
|
70
70
|
def resolve_bucket(vector_name):
|
|
71
|
+
if os.getenv('EXTENSIONS_BUCKET'):
|
|
72
|
+
return os.getenv('EXTENSIONS_BUCKET')
|
|
73
|
+
|
|
71
74
|
bucket_config = load_config_key("upload", vector_name, "vacConfig")
|
|
72
75
|
if bucket_config:
|
|
73
76
|
if bucket_config.get("buckets"):
|
|
@@ -104,6 +107,9 @@ def add_file_to_gcs(filename: str, vector_name:str, bucket_name: str=None, metad
|
|
|
104
107
|
hour = now.strftime("%H")
|
|
105
108
|
hour_prev = (now - datetime.timedelta(hours=1)).strftime("%H")
|
|
106
109
|
|
|
110
|
+
if os.getenv('EXTENSIONS_BUCKET'):
|
|
111
|
+
bucket_filepath = os.path.basename(filename)
|
|
112
|
+
|
|
107
113
|
if not bucket_filepath:
|
|
108
114
|
bucket_filepath = f"{vector_name}/{year}/{month}/{day}/{hour}/{os.path.basename(filename)}"
|
|
109
115
|
bucket_filepath_prev = f"{vector_name}/{year}/{month}/{day}/{hour_prev}/{os.path.basename(filename)}"
|
|
@@ -168,6 +168,7 @@ class VertexAIExtensions:
|
|
|
168
168
|
|
|
169
169
|
# This field is only applicable when `file_output_gcs_bucket` is specified in `Extension.CodeInterpreterRuntimeConfig`.
|
|
170
170
|
|
|
171
|
+
log.info(f"extension_code_interpreter: {extension_code_interpreter.resource_name}")
|
|
171
172
|
operation_params = {"query": query}
|
|
172
173
|
|
|
173
174
|
file_arr = None
|
|
@@ -183,7 +184,7 @@ class VertexAIExtensions:
|
|
|
183
184
|
|
|
184
185
|
if gcs_files:
|
|
185
186
|
operation_params["file_gcs_uris"] = gcs_files
|
|
186
|
-
log.info("Executing code interpreter")
|
|
187
|
+
log.info(f"Executing code interpreter with {operation_params=}")
|
|
187
188
|
response = extension_code_interpreter.execute(
|
|
188
189
|
operation_id="generate_and_execute",
|
|
189
190
|
operation_params=operation_params)
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: sunholo
|
|
3
|
-
Version: 0.71.
|
|
3
|
+
Version: 0.71.23
|
|
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.23.tar.gz
|
|
7
7
|
Author: Holosun ApS
|
|
8
8
|
Author-email: multivac@sunholo.com
|
|
9
9
|
License: Apache License, Version 2.0
|
|
@@ -67,7 +67,7 @@ sunholo/discovery_engine/discovery_engine_client.py,sha256=YYsFeaW41l8jmWCruQnYx
|
|
|
67
67
|
sunholo/embedder/__init__.py,sha256=sI4N_CqgEVcrMDxXgxKp1FsfsB4FpjoXgPGkl4N_u4I,44
|
|
68
68
|
sunholo/embedder/embed_chunk.py,sha256=d_dIzeNF630Q0Ar-u1hxos60s0tLIImJccAvuo_LTIw,6814
|
|
69
69
|
sunholo/gcs/__init__.py,sha256=DtVw_AZwQn-IguR5BJuIi2XJeF_FQXizhJikzRNrXiE,50
|
|
70
|
-
sunholo/gcs/add_file.py,sha256=
|
|
70
|
+
sunholo/gcs/add_file.py,sha256=HefZjddhzguejkmFAKK7rWiY7nuh60p3rEF-JQ_wCqM,6801
|
|
71
71
|
sunholo/gcs/download_url.py,sha256=8XSEf8byfubqs5CMQeF_tn9wxqwUTq3n9mo5mLNIUTA,4801
|
|
72
72
|
sunholo/gcs/metadata.py,sha256=C9sMPsHsq1ETetdQCqB3EBs3Kws8b8QHS9L7ei_v5aw,891
|
|
73
73
|
sunholo/langfuse/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -111,13 +111,13 @@ sunholo/utils/user_ids.py,sha256=SQd5_H7FE7vcTZp9AQuQDWBXd4FEEd7TeVMQe1H4Ny8,292
|
|
|
111
111
|
sunholo/utils/version.py,sha256=P1QAJQdZfT2cMqdTSmXmcxrD2PssMPEGM-WI6083Fck,237
|
|
112
112
|
sunholo/vertex/__init__.py,sha256=XH7FUKxdIgN9H2iDcWxL3sRnVHC3297G24RqEn4Ob0Y,240
|
|
113
113
|
sunholo/vertex/extensions.py,sha256=d-Ikt9gHFf-jUMPmyU-xHwYe22QtEyr90Ua1LDKgTws,11026
|
|
114
|
-
sunholo/vertex/extensions_class.py,sha256=
|
|
114
|
+
sunholo/vertex/extensions_class.py,sha256=E0ix4YqFQG9EglKeTmp2-zwuZUA2crileGahAhe4g5k,12164
|
|
115
115
|
sunholo/vertex/init.py,sha256=-w7b9GKsyJnAJpYHYz6_zBUtmeJeLXlEkgOfwoe4DEI,2715
|
|
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.23.dist-info/LICENSE.txt,sha256=SdE3QjnD3GEmqqg9EX3TM9f7WmtOzqS1KJve8rhbYmU,11345
|
|
119
|
+
sunholo-0.71.23.dist-info/METADATA,sha256=t4yUfSvmxXbtNGkhxpyeSsE76rvilLaTDjl6B_kbmkE,6767
|
|
120
|
+
sunholo-0.71.23.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
|
|
121
|
+
sunholo-0.71.23.dist-info/entry_points.txt,sha256=bZuN5AIHingMPt4Ro1b_T-FnQvZ3teBes-3OyO0asl4,49
|
|
122
|
+
sunholo-0.71.23.dist-info/top_level.txt,sha256=wt5tadn5--5JrZsjJz2LceoUvcrIvxjHJe-RxuudxAk,8
|
|
123
|
+
sunholo-0.71.23.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|