sunholo 0.66.20__py3-none-any.whl → 0.66.21__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/agents/swagger.py +2 -3
- sunholo/cli/chat_vac.py +21 -5
- {sunholo-0.66.20.dist-info → sunholo-0.66.21.dist-info}/METADATA +2 -2
- {sunholo-0.66.20.dist-info → sunholo-0.66.21.dist-info}/RECORD +8 -8
- {sunholo-0.66.20.dist-info → sunholo-0.66.21.dist-info}/LICENSE.txt +0 -0
- {sunholo-0.66.20.dist-info → sunholo-0.66.21.dist-info}/WHEEL +0 -0
- {sunholo-0.66.20.dist-info → sunholo-0.66.21.dist-info}/entry_points.txt +0 -0
- {sunholo-0.66.20.dist-info → sunholo-0.66.21.dist-info}/top_level.txt +0 -0
sunholo/agents/swagger.py
CHANGED
|
@@ -273,9 +273,8 @@ See more at https://dev.sunholo.com/
|
|
|
273
273
|
try:
|
|
274
274
|
stem = route_vac(vector_name).strip()
|
|
275
275
|
except ValueError:
|
|
276
|
-
stem
|
|
277
|
-
|
|
278
|
-
|
|
276
|
+
log.warning(f"Failed to find URL stem for {vector_name}/{agent_type} - skipping")
|
|
277
|
+
continue
|
|
279
278
|
|
|
280
279
|
for method, endpoints in default_agent_config.items():
|
|
281
280
|
# controls if get requests are protected or not
|
sunholo/cli/chat_vac.py
CHANGED
|
@@ -11,6 +11,7 @@ import sys
|
|
|
11
11
|
import subprocess
|
|
12
12
|
import json
|
|
13
13
|
import requests
|
|
14
|
+
import os
|
|
14
15
|
from pathlib import Path
|
|
15
16
|
|
|
16
17
|
from rich import print
|
|
@@ -226,15 +227,30 @@ def resolve_service_url(args, no_config=False):
|
|
|
226
227
|
if args.url_override:
|
|
227
228
|
|
|
228
229
|
return args.url_override
|
|
230
|
+
|
|
231
|
+
agent_name = load_config_key("agent", args.vac_name, kind="vacConfig")
|
|
232
|
+
agent_url = load_config_key("agent_url", args.vac_name, "vacConfig")
|
|
233
|
+
if agent_url:
|
|
234
|
+
console.print("Found agent_url within vacConfig: {agent_url}")
|
|
235
|
+
|
|
236
|
+
# via public cloud endpoints - assumes no gcloud auth
|
|
237
|
+
if os.getenv("MULTIVAC_API_KEY"):
|
|
238
|
+
console.rule("Found MULTIVAC_API_KEY")
|
|
239
|
+
gcp_config = load_config_key("gcp_config", "global", "vacConfig")
|
|
240
|
+
endpoints_base_url = gcp_config.get("endpoints_base_url")
|
|
241
|
+
if not endpoints_base_url:
|
|
242
|
+
console.print("[bold red]MULTIVAC_API_KEY env var is set but no config.gcp_config.endpoints_base_url can be found[/bold red]")
|
|
243
|
+
sys.exit(1)
|
|
244
|
+
|
|
245
|
+
service_url = f"{endpoints_base_url}/v1/{agent_name}"
|
|
229
246
|
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
if agent_url:
|
|
233
|
-
console.print("Found agent_url within vacConfig: {agent_url}")
|
|
247
|
+
# via direct access to agent url - requires gcloud auth access
|
|
248
|
+
elif args.no_proxy:
|
|
234
249
|
|
|
235
|
-
service_url = agent_url or get_cloud_run_service_url(args.project, args.region,
|
|
250
|
+
service_url = agent_url or get_cloud_run_service_url(args.project, args.region, agent_name)
|
|
236
251
|
console.print(f"No proxy, connecting directly to {service_url}")
|
|
237
252
|
else:
|
|
253
|
+
# via gcloud proxy - requires gcloud auth access
|
|
238
254
|
try:
|
|
239
255
|
service_url = get_service_url(args.vac_name, args.project, args.region, no_config=no_config)
|
|
240
256
|
except ValueError as e:
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: sunholo
|
|
3
|
-
Version: 0.66.
|
|
3
|
+
Version: 0.66.21
|
|
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.66.
|
|
6
|
+
Download-URL: https://github.com/sunholo-data/sunholo-py/archive/refs/tags/v0.66.21.tar.gz
|
|
7
7
|
Author: Holosun ApS
|
|
8
8
|
Author-email: multivac@sunholo.com
|
|
9
9
|
License: Apache License, Version 2.0
|
|
@@ -7,7 +7,7 @@ sunholo/agents/langserve.py,sha256=FdhQjorAY2bMn2rpuabNT6bU3uqSKWrl8DjpH3L_V7k,4
|
|
|
7
7
|
sunholo/agents/pubsub.py,sha256=5hbbhbBGyVWRpt2sAGC5FEheYH1mCCwVUhZEB1S7vGg,1337
|
|
8
8
|
sunholo/agents/route.py,sha256=V1HKXTvaNuYgjmT5_QgIQum4O7O0Mw497m6YiMpEzX0,2383
|
|
9
9
|
sunholo/agents/special_commands.py,sha256=ecD5jrBVXo170sdgPILi0m_m_4nRFEv6qKn5zYEvEK8,6494
|
|
10
|
-
sunholo/agents/swagger.py,sha256=
|
|
10
|
+
sunholo/agents/swagger.py,sha256=npZT7jRJA65xMXNjTcYsC3-RMd8qYP71vy_fSCCcKGg,13572
|
|
11
11
|
sunholo/agents/fastapi/__init__.py,sha256=S_pj4_bTUmDGoq_exaREHlOKThi0zTuGT0VZY0YfODQ,88
|
|
12
12
|
sunholo/agents/fastapi/base.py,sha256=clk76cHbUAvU0OYJrRfCWX_5f0ACbhDsIzYBhI3wyoE,2514
|
|
13
13
|
sunholo/agents/fastapi/qna_routes.py,sha256=DgK4Btu5XriOC1JaRQ4G_nWEjJfnQ0J5pyLanF6eF1g,3857
|
|
@@ -32,7 +32,7 @@ sunholo/chunker/pdfs.py,sha256=daCZ1xjn1YvxlifIyxskWNpLJLe-Q9D_Jq12MWx3tZo,2473
|
|
|
32
32
|
sunholo/chunker/publish.py,sha256=GNXV6IPdKM2GZUcjGXIERu49D0ITYtizsLIktKVtMjM,2768
|
|
33
33
|
sunholo/chunker/splitter.py,sha256=FLkDhkePkg_zGQpFBK13Cznw575D-Rf9pcaCpc1HUxY,6726
|
|
34
34
|
sunholo/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
35
|
-
sunholo/cli/chat_vac.py,sha256=
|
|
35
|
+
sunholo/cli/chat_vac.py,sha256=AK1lytiXctNIYOw2L_OmxUKG9q2wg5eddZ9Ei-TKbF4,18622
|
|
36
36
|
sunholo/cli/cli.py,sha256=8e00HBN6eYIUJ8cnvKteBJNn7aZPRMk4b82jwcGg9D4,3741
|
|
37
37
|
sunholo/cli/cli_init.py,sha256=JMZ9AX2cPDZ-_mv3adiv2ToFVNyRPtjk9Biszl1kiR0,2358
|
|
38
38
|
sunholo/cli/configs.py,sha256=QUM9DvKOdZmEQRM5uI3Nh887T0YDiSMr7O240zTLqws,4546
|
|
@@ -104,9 +104,9 @@ sunholo/vertex/__init__.py,sha256=JvHcGFuv6R_nAhY2AdoqqhMpJ5ugeWPZ_svGhWrObBk,13
|
|
|
104
104
|
sunholo/vertex/init.py,sha256=JDMUaBRdednzbKF-5p33qqLit2LMsvgvWW-NRz0AqO0,1801
|
|
105
105
|
sunholo/vertex/memory_tools.py,sha256=8F1iTWnqEK9mX4W5RzCVKIjydIcNp6OFxjn_dtQ3GXo,5379
|
|
106
106
|
sunholo/vertex/safety.py,sha256=3meAX0HyGZYrH7rXPUAHxtI_3w_zoy_RX7Shtkoa660,1275
|
|
107
|
-
sunholo-0.66.
|
|
108
|
-
sunholo-0.66.
|
|
109
|
-
sunholo-0.66.
|
|
110
|
-
sunholo-0.66.
|
|
111
|
-
sunholo-0.66.
|
|
112
|
-
sunholo-0.66.
|
|
107
|
+
sunholo-0.66.21.dist-info/LICENSE.txt,sha256=SdE3QjnD3GEmqqg9EX3TM9f7WmtOzqS1KJve8rhbYmU,11345
|
|
108
|
+
sunholo-0.66.21.dist-info/METADATA,sha256=g0fzhIzo4-Re8S14chGFaANtaOSJK-X4-NRr2F7acQQ,6098
|
|
109
|
+
sunholo-0.66.21.dist-info/WHEEL,sha256=cpQTJ5IWu9CdaPViMhC9YzF8gZuS5-vlfoFihTBC86A,91
|
|
110
|
+
sunholo-0.66.21.dist-info/entry_points.txt,sha256=bZuN5AIHingMPt4Ro1b_T-FnQvZ3teBes-3OyO0asl4,49
|
|
111
|
+
sunholo-0.66.21.dist-info/top_level.txt,sha256=wt5tadn5--5JrZsjJz2LceoUvcrIvxjHJe-RxuudxAk,8
|
|
112
|
+
sunholo-0.66.21.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|