sunholo 0.81.3__py3-none-any.whl → 0.81.5__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 -9
- sunholo/utils/config_class.py +22 -1
- {sunholo-0.81.3.dist-info → sunholo-0.81.5.dist-info}/METADATA +2 -2
- {sunholo-0.81.3.dist-info → sunholo-0.81.5.dist-info}/RECORD +8 -8
- {sunholo-0.81.3.dist-info → sunholo-0.81.5.dist-info}/LICENSE.txt +0 -0
- {sunholo-0.81.3.dist-info → sunholo-0.81.5.dist-info}/WHEEL +0 -0
- {sunholo-0.81.3.dist-info → sunholo-0.81.5.dist-info}/entry_points.txt +0 -0
- {sunholo-0.81.3.dist-info → sunholo-0.81.5.dist-info}/top_level.txt +0 -0
sunholo/agents/swagger.py
CHANGED
|
@@ -170,17 +170,10 @@ def generate_swagger(vac_config, agent_config):
|
|
|
170
170
|
'swagger': '2.0',
|
|
171
171
|
'info': {
|
|
172
172
|
'title': 'Sunholo Multivac API - ${_BRANCH_NAME}',
|
|
173
|
-
'description':
|
|
174
|
-
Multivac (Multi-VAC) Cloud abstracts the interaction between the Cloud and GenAI applications via Virtual Agent Computers (VAC), allowing standardization of input and output to accelerate deployments.
|
|
175
|
-
VACs support frameworks like Langchain, LlamaIndex, VertexAI, OpenAI, or custom libraries, operating within Docker containers.
|
|
176
|
-
Multivac features serverless architecture, robust security within a Virtual Private Cloud (VPC), and flexible user interfaces.
|
|
177
|
-
Generate API keys (MULTIVAC_API_KEY) to enable access to private services.
|
|
178
|
-
Partners can deploy all services within their own cloud for complete ownership.
|
|
179
|
-
See more at https://dev.sunholo.com/
|
|
180
|
-
""",
|
|
173
|
+
'description': 'Multivac (Multi-VAC) Cloud. Generate API keys (MULTIVAC_API_KEY) to enable access to private services. See more at https://dev.sunholo.com/',
|
|
181
174
|
'version': '0.1.0'
|
|
182
175
|
},
|
|
183
|
-
'host': '${_ENDPOINTS_HOST}',
|
|
176
|
+
'host': '"${_ENDPOINTS_HOST}"',
|
|
184
177
|
'basePath': '/v1',
|
|
185
178
|
'schemes': ['https'],
|
|
186
179
|
'produces': ['application/json'],
|
sunholo/utils/config_class.py
CHANGED
|
@@ -3,6 +3,8 @@ import json
|
|
|
3
3
|
import yaml
|
|
4
4
|
from datetime import datetime, timedelta
|
|
5
5
|
from collections import defaultdict
|
|
6
|
+
from yaml.constructor import SafeConstructor, ConstructorError
|
|
7
|
+
|
|
6
8
|
from .timedelta import format_timedelta
|
|
7
9
|
|
|
8
10
|
class ConfigManager:
|
|
@@ -120,11 +122,30 @@ class ConfigManager:
|
|
|
120
122
|
dict: The loaded configuration.
|
|
121
123
|
"""
|
|
122
124
|
from ..custom_logging import log
|
|
125
|
+
|
|
126
|
+
class NoDuplicateKeyConstructor(SafeConstructor):
|
|
127
|
+
def construct_mapping(self, node, deep=False):
|
|
128
|
+
mapping = {}
|
|
129
|
+
for key_node, value_node in node.value:
|
|
130
|
+
key = self.construct_object(key_node, deep=deep)
|
|
131
|
+
if key in mapping:
|
|
132
|
+
raise ConstructorError(f"Duplicate key found: {key_node.start_mark}")
|
|
133
|
+
value = self.construct_object(value_node, deep=deep)
|
|
134
|
+
mapping[key] = value
|
|
135
|
+
return mapping
|
|
136
|
+
|
|
137
|
+
NoDuplicateKeyLoader = yaml.Loader
|
|
138
|
+
NoDuplicateKeyLoader.add_constructor(
|
|
139
|
+
yaml.resolver.BaseResolver.DEFAULT_MAPPING_TAG,
|
|
140
|
+
NoDuplicateKeyConstructor.construct_mapping
|
|
141
|
+
)
|
|
142
|
+
|
|
123
143
|
with open(config_file, 'r') as file:
|
|
124
144
|
if filename.endswith('.json'):
|
|
125
145
|
config = json.load(file)
|
|
126
146
|
else:
|
|
127
|
-
config = yaml.
|
|
147
|
+
config = yaml.load(file, Loader=NoDuplicateKeyLoader)
|
|
148
|
+
|
|
128
149
|
self.config_cache[filename] = (config, datetime.now())
|
|
129
150
|
if is_local:
|
|
130
151
|
log.warning(f"Local configuration override for {filename} via {self.local_config_folder}")
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: sunholo
|
|
3
|
-
Version: 0.81.
|
|
3
|
+
Version: 0.81.5
|
|
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.81.
|
|
6
|
+
Download-URL: https://github.com/sunholo-data/sunholo-py/archive/refs/tags/v0.81.5.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=C46ph2mnygr6bdHijYWYyfQDI9ylAF0_9Kx2PfcCJpU,4
|
|
|
7
7
|
sunholo/agents/pubsub.py,sha256=TscZN_6am6DfaQkC-Yl18ZIBOoLE-0nDSiil6GpQEh4,1344
|
|
8
8
|
sunholo/agents/route.py,sha256=Mo-YOHDsHOiQXfb6VmCH0BPThAD-0jZGIkIKAHxSDdc,2986
|
|
9
9
|
sunholo/agents/special_commands.py,sha256=YhN8_E4cGZVvagN5_fouaxZiVbxr7PEhSzoFcvTKH54,6501
|
|
10
|
-
sunholo/agents/swagger.py,sha256=
|
|
10
|
+
sunholo/agents/swagger.py,sha256=Z01v5Yk6_nW5FPCuwjYcx3_0ISIXJOlA-kQFCQTtqRA,10673
|
|
11
11
|
sunholo/agents/fastapi/__init__.py,sha256=S_pj4_bTUmDGoq_exaREHlOKThi0zTuGT0VZY0YfODQ,88
|
|
12
12
|
sunholo/agents/fastapi/base.py,sha256=W-cyF8ZDUH40rc-c-Apw3-_8IIi2e4Y9qRtnoVnsc1Q,2521
|
|
13
13
|
sunholo/agents/fastapi/qna_routes.py,sha256=lKHkXPmwltu9EH3RMwmD153-J6pE7kWQ4BhBlV3to-s,3864
|
|
@@ -118,7 +118,7 @@ sunholo/utils/__init__.py,sha256=Hv02T5L2zYWvCso5hzzwm8FQogwBq0OgtUbN_7Quzqc,89
|
|
|
118
118
|
sunholo/utils/api_key.py,sha256=Ct4bIAQZxzPEw14hP586LpVxBAVi_W9Serpy0BK-7KI,244
|
|
119
119
|
sunholo/utils/big_context.py,sha256=gJIP7_ZL-YSLhOMq8jmFTMqH1wq8eB1NK7oKPeZAq2s,5578
|
|
120
120
|
sunholo/utils/config.py,sha256=aG29MXcL5qzQMtCMqcdy-2ysDCYf9Zn_ZLk5NNOQNSE,8982
|
|
121
|
-
sunholo/utils/config_class.py,sha256=
|
|
121
|
+
sunholo/utils/config_class.py,sha256=ygKw3E-Q6MLc1XZKRULCTPTibsOFlEfyCA3GyxOhPa8,9869
|
|
122
122
|
sunholo/utils/config_schema.py,sha256=Wv-ncitzljOhgbDaq9qnFqH5LCuxNv59dTGDWgd1qdk,4189
|
|
123
123
|
sunholo/utils/gcp.py,sha256=uueODEpA-P6O15-t0hmcGC9dONLO_hLfzSsSoQnkUss,4854
|
|
124
124
|
sunholo/utils/gcp_project.py,sha256=Fa0IhCX12bZ1ctF_PKN8PNYd7hihEUfb90kilBfUDjg,1411
|
|
@@ -134,9 +134,9 @@ sunholo/vertex/init.py,sha256=1OQwcPBKZYBTDPdyU7IM4X4OmiXLdsNV30C-fee2scQ,2875
|
|
|
134
134
|
sunholo/vertex/memory_tools.py,sha256=pgSahVDh7GPEulu3nl-w0jb5lTClb4TCnVxPnMokNZY,7533
|
|
135
135
|
sunholo/vertex/safety.py,sha256=S9PgQT1O_BQAkcqauWncRJaydiP8Q_Jzmu9gxYfy1VA,2482
|
|
136
136
|
sunholo/vertex/type_dict_to_json.py,sha256=uTzL4o9tJRao4u-gJOFcACgWGkBOtqACmb6ihvCErL8,4694
|
|
137
|
-
sunholo-0.81.
|
|
138
|
-
sunholo-0.81.
|
|
139
|
-
sunholo-0.81.
|
|
140
|
-
sunholo-0.81.
|
|
141
|
-
sunholo-0.81.
|
|
142
|
-
sunholo-0.81.
|
|
137
|
+
sunholo-0.81.5.dist-info/LICENSE.txt,sha256=SdE3QjnD3GEmqqg9EX3TM9f7WmtOzqS1KJve8rhbYmU,11345
|
|
138
|
+
sunholo-0.81.5.dist-info/METADATA,sha256=fXdG0UEL0dbJuJPm85_8gk5POiaZCev7voNR_ypEg2c,7348
|
|
139
|
+
sunholo-0.81.5.dist-info/WHEEL,sha256=R0nc6qTxuoLk7ShA2_Y-UWkN8ZdfDBG2B6Eqpz2WXbs,91
|
|
140
|
+
sunholo-0.81.5.dist-info/entry_points.txt,sha256=bZuN5AIHingMPt4Ro1b_T-FnQvZ3teBes-3OyO0asl4,49
|
|
141
|
+
sunholo-0.81.5.dist-info/top_level.txt,sha256=wt5tadn5--5JrZsjJz2LceoUvcrIvxjHJe-RxuudxAk,8
|
|
142
|
+
sunholo-0.81.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|