sunholo 0.66.11__py3-none-any.whl → 0.66.12__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/flask/qna_routes.py +4 -2
- {sunholo-0.66.11.dist-info → sunholo-0.66.12.dist-info}/METADATA +2 -2
- {sunholo-0.66.11.dist-info → sunholo-0.66.12.dist-info}/RECORD +7 -7
- {sunholo-0.66.11.dist-info → sunholo-0.66.12.dist-info}/LICENSE.txt +0 -0
- {sunholo-0.66.11.dist-info → sunholo-0.66.12.dist-info}/WHEEL +0 -0
- {sunholo-0.66.11.dist-info → sunholo-0.66.12.dist-info}/entry_points.txt +0 -0
- {sunholo-0.66.11.dist-info → sunholo-0.66.12.dist-info}/top_level.txt +0 -0
|
@@ -225,8 +225,10 @@ def register_qna_routes(app, stream_interpreter, vac_interpreter):
|
|
|
225
225
|
|
|
226
226
|
@app.before_request
|
|
227
227
|
def check_authentication_header():
|
|
228
|
-
if request.path.startswith('/openai/'):
|
|
229
|
-
|
|
228
|
+
if request.path.startswith('/openai/') or request.path.startswith('/vac/'):
|
|
229
|
+
log.debug(f'Request headers: {request.headers}')
|
|
230
|
+
# the header forwarded
|
|
231
|
+
auth_header = request.headers.get('X-Forwarded-Authorization')
|
|
230
232
|
if auth_header:
|
|
231
233
|
api_key = auth_header.split(' ')[1] # Assuming "Bearer <api_key>"
|
|
232
234
|
endpoints_host = os.getenv('_ENDPOINTS_HOST')
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: sunholo
|
|
3
|
-
Version: 0.66.
|
|
3
|
+
Version: 0.66.12
|
|
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.12.tar.gz
|
|
7
7
|
Author: Holosun ApS
|
|
8
8
|
Author-email: multivac@sunholo.com
|
|
9
9
|
License: Apache License, Version 2.0
|
|
@@ -13,7 +13,7 @@ sunholo/agents/fastapi/base.py,sha256=clk76cHbUAvU0OYJrRfCWX_5f0ACbhDsIzYBhI3wyo
|
|
|
13
13
|
sunholo/agents/fastapi/qna_routes.py,sha256=DgK4Btu5XriOC1JaRQ4G_nWEjJfnQ0J5pyLanF6eF1g,3857
|
|
14
14
|
sunholo/agents/flask/__init__.py,sha256=uqfHNw2Ru3EJ4dJEcbp86h_lkquBQPMxZbjhV_xe3rs,72
|
|
15
15
|
sunholo/agents/flask/base.py,sha256=FgSaCODyoTtlstJtsqlLPScdgRUtv9_plxftdzHdVFo,809
|
|
16
|
-
sunholo/agents/flask/qna_routes.py,sha256=
|
|
16
|
+
sunholo/agents/flask/qna_routes.py,sha256=yCfLW0MVo7RIbdsDVKV8TOH9U7pk2DJpTkeuQtE-eCA,21092
|
|
17
17
|
sunholo/archive/__init__.py,sha256=qNHWm5rGPVOlxZBZCpA1wTYPbalizRT7f8X4rs2t290,31
|
|
18
18
|
sunholo/archive/archive.py,sha256=C-UhG5x-XtZ8VheQp92IYJqgD0V3NFQjniqlit94t18,1197
|
|
19
19
|
sunholo/auth/__init__.py,sha256=4owDjSaWYkbTlPK47UHTOC0gCWbZsqn4ZIEw5NWZTlg,28
|
|
@@ -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.12.dist-info/LICENSE.txt,sha256=SdE3QjnD3GEmqqg9EX3TM9f7WmtOzqS1KJve8rhbYmU,11345
|
|
108
|
+
sunholo-0.66.12.dist-info/METADATA,sha256=sY7RqowOzPSoPwjSDsJyj5R2nZTLbdlE_FoW6andT_M,6098
|
|
109
|
+
sunholo-0.66.12.dist-info/WHEEL,sha256=cpQTJ5IWu9CdaPViMhC9YzF8gZuS5-vlfoFihTBC86A,91
|
|
110
|
+
sunholo-0.66.12.dist-info/entry_points.txt,sha256=bZuN5AIHingMPt4Ro1b_T-FnQvZ3teBes-3OyO0asl4,49
|
|
111
|
+
sunholo-0.66.12.dist-info/top_level.txt,sha256=wt5tadn5--5JrZsjJz2LceoUvcrIvxjHJe-RxuudxAk,8
|
|
112
|
+
sunholo-0.66.12.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|