sunholo 0.55.11__py3-none-any.whl → 0.55.13__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.
@@ -41,7 +41,7 @@ def register_qna_routes(app, stream_interpreter, vac_interpreter):
41
41
  @app.route('/vac/streaming/<vector_name>', methods=['POST'])
42
42
  def stream_qa(vector_name):
43
43
  prep = prep_vac(request, vector_name)
44
- log.debug("Processing prep: {prep}")
44
+ log.debug(f"Processing prep: {prep}")
45
45
  trace = prep["trace"]
46
46
  span = prep["span"]
47
47
  command_response = prep["command_response"]
@@ -58,11 +58,11 @@ def register_qna_routes(app, stream_interpreter, vac_interpreter):
58
58
  name="start_streaming_chat",
59
59
  metadata=vac_config,
60
60
  input = all_input,
61
- completion_start_time=datetime.datetime.now,
61
+ completion_start_time=datetime.datetime.now(),
62
62
  model=vac_config.get("model") or vac_config.get("llm")
63
63
  )
64
64
  chunks = ""
65
- for chunk in start_streaming_chat(user_input=all_input["user_input"],
65
+ for chunk in start_streaming_chat(question=all_input["user_input"],
66
66
  vector_name=vector_name,
67
67
  qna_func=stream_interpreter,
68
68
  chat_history=all_input["chat_history"],
@@ -109,7 +109,7 @@ def register_qna_routes(app, stream_interpreter, vac_interpreter):
109
109
  @app.route('/vac/<vector_name>', methods=['POST'])
110
110
  def process_qna(vector_name):
111
111
  prep = prep_vac(request, vector_name)
112
- log.debug("Processing prep: {prep}")
112
+ log.debug(f"Processing prep: {prep}")
113
113
  trace = prep["trace"]
114
114
  span = prep["span"]
115
115
  command_response = prep["command_response"]
@@ -128,7 +128,7 @@ def register_qna_routes(app, stream_interpreter, vac_interpreter):
128
128
  model=vac_config.get("model") or vac_config.get("llm")
129
129
  )
130
130
  bot_output = vac_interpreter(
131
- user_input=all_input["user_input"],
131
+ question=all_input["user_input"],
132
132
  vector_name=vector_name,
133
133
  chat_history=all_input["chat_history"],
134
134
  message_author=all_input["message_author"]
@@ -209,7 +209,7 @@ def prep_vac(request, vector_name):
209
209
  'chat_history': paired_messages,
210
210
  'message_author': message_author,
211
211
  'stream_wait_time': stream_wait_time,
212
- 'stream_timeout':stream_timeout},
212
+ 'stream_timeout':stream_timeout}
213
213
 
214
214
  if trace:
215
215
  span = trace.span(
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sunholo
3
- Version: 0.55.11
3
+ Version: 0.55.13
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.55.11.tar.gz
6
+ Download-URL: https://github.com/sunholo-data/sunholo-py/archive/refs/tags/v0.55.13.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=Xl05L8DjUozGMK7kKPqz7Twr4W56BnLQu_uprsTv_q0,4075
14
14
  sunholo/agents/flask/__init__.py,sha256=uqfHNw2Ru3EJ4dJEcbp86h_lkquBQPMxZbjhV_xe3rs,72
15
15
  sunholo/agents/flask/base.py,sha256=RUGWBYWeV60FatYF5sMRrxD-INU97Vodsi6JaB6i93s,763
16
- sunholo/agents/flask/qna_routes.py,sha256=A69H23hxOV-tS23v5ribJ0nRnpPRielmk8oBR7Wm8ho,8851
16
+ sunholo/agents/flask/qna_routes.py,sha256=WgmVGl7S4TvQWoAXO0b06FkGf0O-iDQUbB7WyC9YaSY,8850
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
@@ -81,8 +81,8 @@ sunholo/utils/__init__.py,sha256=MxuxoJ-oOie_skGnB4mOagVYjzvfmX9Gz9N5heI8azM,62
81
81
  sunholo/utils/config.py,sha256=KYuhwmhYS7qOpt2ZcpAWnlHPJ9rBDX1SgP8gnjkAW6E,7321
82
82
  sunholo/utils/gcp.py,sha256=B2G1YKjeD7X9dqO86Jrp2vPuFwZ223Xl5Tg09Ndw-oc,5760
83
83
  sunholo/utils/parsers.py,sha256=E-M7s3_rPviT5zCqQHzhb1DwYmz5a1J472ZVazx10M8,3400
84
- sunholo-0.55.11.dist-info/LICENSE.txt,sha256=SdE3QjnD3GEmqqg9EX3TM9f7WmtOzqS1KJve8rhbYmU,11345
85
- sunholo-0.55.11.dist-info/METADATA,sha256=aXbdtMFoKwl0KuK-d6Qd1xbaupRoU9T8yi9Ov3ltD9s,6434
86
- sunholo-0.55.11.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
87
- sunholo-0.55.11.dist-info/top_level.txt,sha256=wt5tadn5--5JrZsjJz2LceoUvcrIvxjHJe-RxuudxAk,8
88
- sunholo-0.55.11.dist-info/RECORD,,
84
+ sunholo-0.55.13.dist-info/LICENSE.txt,sha256=SdE3QjnD3GEmqqg9EX3TM9f7WmtOzqS1KJve8rhbYmU,11345
85
+ sunholo-0.55.13.dist-info/METADATA,sha256=GcdZKMXCKHhajZgrFwcFxSzXOVxMBsM2FzOfNI2Lj5w,6434
86
+ sunholo-0.55.13.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
87
+ sunholo-0.55.13.dist-info/top_level.txt,sha256=wt5tadn5--5JrZsjJz2LceoUvcrIvxjHJe-RxuudxAk,8
88
+ sunholo-0.55.13.dist-info/RECORD,,