sunholo 0.98.2__py3-none-any.whl → 0.98.4__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/database/alloydb_client.py +7 -1
- {sunholo-0.98.2.dist-info → sunholo-0.98.4.dist-info}/METADATA +2 -2
- {sunholo-0.98.2.dist-info → sunholo-0.98.4.dist-info}/RECORD +7 -7
- {sunholo-0.98.2.dist-info → sunholo-0.98.4.dist-info}/LICENSE.txt +0 -0
- {sunholo-0.98.2.dist-info → sunholo-0.98.4.dist-info}/WHEEL +0 -0
- {sunholo-0.98.2.dist-info → sunholo-0.98.4.dist-info}/entry_points.txt +0 -0
- {sunholo-0.98.2.dist-info → sunholo-0.98.4.dist-info}/top_level.txt +0 -0
|
@@ -58,6 +58,8 @@ class AlloyDBClient:
|
|
|
58
58
|
if config is None:
|
|
59
59
|
if project_id is None or region is None or cluster_name is None or instance_name is None:
|
|
60
60
|
raise ValueError("Must specify config or project_id, region, cluster_name, instance_name")
|
|
61
|
+
|
|
62
|
+
alloydb_config = None
|
|
61
63
|
if config:
|
|
62
64
|
alloydb_config = config.vacConfig("alloydb_config")
|
|
63
65
|
if not alloydb_config:
|
|
@@ -73,7 +75,11 @@ class AlloyDBClient:
|
|
|
73
75
|
if ALLOYDB_DB is None and alloydb_config and alloydb_config.get("database") is None:
|
|
74
76
|
log.warning("Could not locate ALLOYDB_DB environment variable or 'alloydb_config.database'")
|
|
75
77
|
|
|
76
|
-
|
|
78
|
+
if alloydb_config:
|
|
79
|
+
self.database = alloydb_config.get("database") or ALLOYDB_DB or db
|
|
80
|
+
else:
|
|
81
|
+
self.database = ALLOYDB_DB or db
|
|
82
|
+
|
|
77
83
|
if not self.database:
|
|
78
84
|
raise ValueError("Could not derive a database to query")
|
|
79
85
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: sunholo
|
|
3
|
-
Version: 0.98.
|
|
3
|
+
Version: 0.98.4
|
|
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.98.
|
|
6
|
+
Download-URL: https://github.com/sunholo-data/sunholo-py/archive/refs/tags/v0.98.4.tar.gz
|
|
7
7
|
Author: Holosun ApS
|
|
8
8
|
Author-email: multivac@sunholo.com
|
|
9
9
|
License: Apache License, Version 2.0
|
|
@@ -59,7 +59,7 @@ sunholo/components/retriever.py,sha256=bKIVT7_18Ut3OJd0E0jyiISPnD9qkHWVjcQPT4i1_
|
|
|
59
59
|
sunholo/components/vectorstore.py,sha256=xKk7micTRwZckaI7U6PxvFz_ZSjCH48xPTDYiDcv2tc,5913
|
|
60
60
|
sunholo/database/__init__.py,sha256=bpB5Nk21kwqYj-qdVnvNgXjLsbflnH4g-San7OHMqR4,283
|
|
61
61
|
sunholo/database/alloydb.py,sha256=YH8wNPS8gN-TDZEXQcVHxwd1NScHRfAxma3gK4R6KCk,11740
|
|
62
|
-
sunholo/database/alloydb_client.py,sha256=
|
|
62
|
+
sunholo/database/alloydb_client.py,sha256=kyDEx-CZheDeI3g02ft0FsNDwqwl642zXF1QL-5HSFo,18721
|
|
63
63
|
sunholo/database/database.py,sha256=VqhZdkXUNdvWn8sUcUV3YNby1JDVf7IykPVXWBtxo9U,7361
|
|
64
64
|
sunholo/database/lancedb.py,sha256=DyfZntiFKBlVPaFooNN1Z6Pl-LAs4nxWKKuq8GBqN58,715
|
|
65
65
|
sunholo/database/static_dbs.py,sha256=8cvcMwUK6c32AS2e_WguKXWMkFf5iN3g9WHzsh0C07Q,442
|
|
@@ -144,9 +144,9 @@ sunholo/vertex/init.py,sha256=1OQwcPBKZYBTDPdyU7IM4X4OmiXLdsNV30C-fee2scQ,2875
|
|
|
144
144
|
sunholo/vertex/memory_tools.py,sha256=tBZxqVZ4InTmdBvLlOYwoSEWu4-kGquc-gxDwZCC4FA,7667
|
|
145
145
|
sunholo/vertex/safety.py,sha256=S9PgQT1O_BQAkcqauWncRJaydiP8Q_Jzmu9gxYfy1VA,2482
|
|
146
146
|
sunholo/vertex/type_dict_to_json.py,sha256=uTzL4o9tJRao4u-gJOFcACgWGkBOtqACmb6ihvCErL8,4694
|
|
147
|
-
sunholo-0.98.
|
|
148
|
-
sunholo-0.98.
|
|
149
|
-
sunholo-0.98.
|
|
150
|
-
sunholo-0.98.
|
|
151
|
-
sunholo-0.98.
|
|
152
|
-
sunholo-0.98.
|
|
147
|
+
sunholo-0.98.4.dist-info/LICENSE.txt,sha256=SdE3QjnD3GEmqqg9EX3TM9f7WmtOzqS1KJve8rhbYmU,11345
|
|
148
|
+
sunholo-0.98.4.dist-info/METADATA,sha256=lDPWhP91K5W_-R0r_ZGbicwWRfFvLWJNt98yhzvRmxA,8310
|
|
149
|
+
sunholo-0.98.4.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
|
150
|
+
sunholo-0.98.4.dist-info/entry_points.txt,sha256=bZuN5AIHingMPt4Ro1b_T-FnQvZ3teBes-3OyO0asl4,49
|
|
151
|
+
sunholo-0.98.4.dist-info/top_level.txt,sha256=wt5tadn5--5JrZsjJz2LceoUvcrIvxjHJe-RxuudxAk,8
|
|
152
|
+
sunholo-0.98.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|