sunholo 0.103.3__py3-none-any.whl → 0.104.0__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/base.py +13 -1
- sunholo/langfuse/prompts.py +1 -1
- {sunholo-0.103.3.dist-info → sunholo-0.104.0.dist-info}/METADATA +4 -2
- {sunholo-0.103.3.dist-info → sunholo-0.104.0.dist-info}/RECORD +8 -8
- {sunholo-0.103.3.dist-info → sunholo-0.104.0.dist-info}/LICENSE.txt +0 -0
- {sunholo-0.103.3.dist-info → sunholo-0.104.0.dist-info}/WHEEL +0 -0
- {sunholo-0.103.3.dist-info → sunholo-0.104.0.dist-info}/entry_points.txt +0 -0
- {sunholo-0.103.3.dist-info → sunholo-0.104.0.dist-info}/top_level.txt +0 -0
sunholo/agents/flask/base.py
CHANGED
|
@@ -13,8 +13,20 @@
|
|
|
13
13
|
# limitations under the License.
|
|
14
14
|
def create_app(name):
|
|
15
15
|
from flask import Flask
|
|
16
|
-
|
|
16
|
+
from flask_cors import CORS
|
|
17
|
+
|
|
17
18
|
app = Flask(name)
|
|
19
|
+
|
|
20
|
+
CORS(app,
|
|
21
|
+
origins=["https://*.sunholo.com", "http://*.sunholo.com"], # Allow all subdomains of sunholo.com
|
|
22
|
+
methods=["GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"], # Allow all necessary HTTP methods
|
|
23
|
+
allow_headers=["DNT", "User-Agent", "X-Requested-With", "If-Modified-Since",
|
|
24
|
+
"Cache-Control", "Content-Type", "Range", "Authorization", "x-api-key"], # Add custom headers
|
|
25
|
+
expose_headers=["Content-Length", "Content-Range"], # Optional: headers that are exposed to clients
|
|
26
|
+
supports_credentials=True,
|
|
27
|
+
max_age=1728000 # Set max age of preflight request caching (in seconds)
|
|
28
|
+
)
|
|
29
|
+
|
|
18
30
|
app.config['TRAP_HTTP_EXCEPTIONS'] = True
|
|
19
31
|
app.config['PROPAGATE_EXCEPTIONS'] = True
|
|
20
32
|
|
sunholo/langfuse/prompts.py
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: sunholo
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.104.0
|
|
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.
|
|
6
|
+
Download-URL: https://github.com/sunholo-data/sunholo-py/archive/refs/tags/v0.104.0.tar.gz
|
|
7
7
|
Author: Holosun ApS
|
|
8
8
|
Author-email: multivac@sunholo.com
|
|
9
9
|
License: Apache License, Version 2.0
|
|
@@ -30,6 +30,7 @@ Requires-Dist: azure-identity ; extra == 'all'
|
|
|
30
30
|
Requires-Dist: azure-storage-blob ; extra == 'all'
|
|
31
31
|
Requires-Dist: fastapi ; extra == 'all'
|
|
32
32
|
Requires-Dist: flask ; extra == 'all'
|
|
33
|
+
Requires-Dist: flask-cors ; extra == 'all'
|
|
33
34
|
Requires-Dist: google-auth ; extra == 'all'
|
|
34
35
|
Requires-Dist: google-auth-httplib2 ; extra == 'all'
|
|
35
36
|
Requires-Dist: google-auth-oauthlib ; extra == 'all'
|
|
@@ -119,6 +120,7 @@ Requires-Dist: pillow ; extra == 'gcp'
|
|
|
119
120
|
Provides-Extra: http
|
|
120
121
|
Requires-Dist: fastapi ; extra == 'http'
|
|
121
122
|
Requires-Dist: flask ; extra == 'http'
|
|
123
|
+
Requires-Dist: flask-cors ; extra == 'http'
|
|
122
124
|
Requires-Dist: gunicorn ; extra == 'http'
|
|
123
125
|
Requires-Dist: httpcore ; extra == 'http'
|
|
124
126
|
Requires-Dist: httpx ; extra == 'http'
|
|
@@ -12,7 +12,7 @@ sunholo/agents/fastapi/__init__.py,sha256=S_pj4_bTUmDGoq_exaREHlOKThi0zTuGT0VZY0
|
|
|
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
|
|
14
14
|
sunholo/agents/flask/__init__.py,sha256=poJDKMr2qj8qMb99JqCvCPSiEt1tj2tLQ3hKW3f2aVw,107
|
|
15
|
-
sunholo/agents/flask/base.py,sha256=
|
|
15
|
+
sunholo/agents/flask/base.py,sha256=Pb3czM-OtQaNPxqxTZTj3JvnvT2oMV1X37S7L-W8A0w,1487
|
|
16
16
|
sunholo/agents/flask/qna_routes.py,sha256=uwUD1yrzOPH27m2AXpiQrPk_2VfJOQOM6dAynOWQtoQ,22532
|
|
17
17
|
sunholo/agents/flask/vac_routes.py,sha256=sFjVXxudKP3SMO2hpcSbPZRZFBfrJr0tDQmlHTzn5E0,27181
|
|
18
18
|
sunholo/archive/__init__.py,sha256=qNHWm5rGPVOlxZBZCpA1wTYPbalizRT7f8X4rs2t290,31
|
|
@@ -97,7 +97,7 @@ sunholo/invoke/invoke_vac_utils.py,sha256=sJc1edHTHMzMGXjji1N67c3iUaP7BmAL5nj82Q
|
|
|
97
97
|
sunholo/langfuse/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
98
98
|
sunholo/langfuse/callback.py,sha256=jl0SZsFS53uMW9DGeM9SOL_EsRZsba0wwFGLqKzu9_U,1684
|
|
99
99
|
sunholo/langfuse/evals.py,sha256=fQBaC0dBTYfgCzyfv9QBRvUfc9f42lbwQAeZmynaHO8,3841
|
|
100
|
-
sunholo/langfuse/prompts.py,sha256=
|
|
100
|
+
sunholo/langfuse/prompts.py,sha256=J-oePqMyd2xPoTDb5G4fM-LNsC9jEa-udZ4dpbQle-w,2332
|
|
101
101
|
sunholo/llamaindex/__init__.py,sha256=DlY_cHWCsVEV1C5WBgDdHRgOMlJc8pDoCRukUJ8PT9w,88
|
|
102
102
|
sunholo/llamaindex/get_files.py,sha256=6rhXCDqQ_lrIapISQ_OYQDjiSATXvS_9m3qq53-oIl0,781
|
|
103
103
|
sunholo/llamaindex/import_files.py,sha256=Bnic5wz8c61af9Kwq8KSrNBbc4imYnzMtBCb2jzSImI,6224
|
|
@@ -147,9 +147,9 @@ sunholo/vertex/init.py,sha256=1OQwcPBKZYBTDPdyU7IM4X4OmiXLdsNV30C-fee2scQ,2875
|
|
|
147
147
|
sunholo/vertex/memory_tools.py,sha256=tBZxqVZ4InTmdBvLlOYwoSEWu4-kGquc-gxDwZCC4FA,7667
|
|
148
148
|
sunholo/vertex/safety.py,sha256=S9PgQT1O_BQAkcqauWncRJaydiP8Q_Jzmu9gxYfy1VA,2482
|
|
149
149
|
sunholo/vertex/type_dict_to_json.py,sha256=uTzL4o9tJRao4u-gJOFcACgWGkBOtqACmb6ihvCErL8,4694
|
|
150
|
-
sunholo-0.
|
|
151
|
-
sunholo-0.
|
|
152
|
-
sunholo-0.
|
|
153
|
-
sunholo-0.
|
|
154
|
-
sunholo-0.
|
|
155
|
-
sunholo-0.
|
|
150
|
+
sunholo-0.104.0.dist-info/LICENSE.txt,sha256=SdE3QjnD3GEmqqg9EX3TM9f7WmtOzqS1KJve8rhbYmU,11345
|
|
151
|
+
sunholo-0.104.0.dist-info/METADATA,sha256=4JeZEj5xrF9rKUjrJVKwIEJzFkdSpYEbRqBnbbpHprA,8399
|
|
152
|
+
sunholo-0.104.0.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
|
153
|
+
sunholo-0.104.0.dist-info/entry_points.txt,sha256=bZuN5AIHingMPt4Ro1b_T-FnQvZ3teBes-3OyO0asl4,49
|
|
154
|
+
sunholo-0.104.0.dist-info/top_level.txt,sha256=wt5tadn5--5JrZsjJz2LceoUvcrIvxjHJe-RxuudxAk,8
|
|
155
|
+
sunholo-0.104.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|