sunholo 0.140.5__py3-none-any.whl → 0.140.6__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/vac_routes.py +0 -19
- {sunholo-0.140.5.dist-info → sunholo-0.140.6.dist-info}/METADATA +1 -1
- {sunholo-0.140.5.dist-info → sunholo-0.140.6.dist-info}/RECORD +7 -7
- {sunholo-0.140.5.dist-info → sunholo-0.140.6.dist-info}/WHEEL +0 -0
- {sunholo-0.140.5.dist-info → sunholo-0.140.6.dist-info}/entry_points.txt +0 -0
- {sunholo-0.140.5.dist-info → sunholo-0.140.6.dist-info}/licenses/LICENSE.txt +0 -0
- {sunholo-0.140.5.dist-info → sunholo-0.140.6.dist-info}/top_level.txt +0 -0
@@ -7,7 +7,6 @@ from functools import partial
|
|
7
7
|
import inspect
|
8
8
|
import asyncio
|
9
9
|
|
10
|
-
from ...agents import handle_special_commands
|
11
10
|
from ..chat_history import extract_chat_history_with_cache, extract_chat_history_async_cached
|
12
11
|
from ...qna.parsers import parse_output
|
13
12
|
from ...streaming import start_streaming_chat, start_streaming_chat_async
|
@@ -241,13 +240,9 @@ if __name__ == "__main__":
|
|
241
240
|
log.info(f"Processing prep: {prep}")
|
242
241
|
trace = prep["trace"]
|
243
242
|
span = prep["span"]
|
244
|
-
command_response = prep["command_response"]
|
245
243
|
vac_config = prep["vac_config"]
|
246
244
|
all_input = prep["all_input"]
|
247
245
|
|
248
|
-
if command_response:
|
249
|
-
return jsonify(command_response)
|
250
|
-
|
251
246
|
log.info(f'Streaming data with: {all_input}')
|
252
247
|
if span:
|
253
248
|
span.update(
|
@@ -432,13 +427,9 @@ if __name__ == "__main__":
|
|
432
427
|
log.debug(f"Processing prep: {prep}")
|
433
428
|
trace = prep["trace"]
|
434
429
|
span = prep["span"]
|
435
|
-
command_response = prep["command_response"]
|
436
430
|
vac_config: ConfigManager = prep["vac_config"]
|
437
431
|
all_input = prep["all_input"]
|
438
432
|
|
439
|
-
if command_response:
|
440
|
-
return jsonify(command_response)
|
441
|
-
|
442
433
|
try:
|
443
434
|
if span:
|
444
435
|
gen = span.generation(
|
@@ -536,8 +527,6 @@ if __name__ == "__main__":
|
|
536
527
|
image_uri = None
|
537
528
|
mime_type = None
|
538
529
|
|
539
|
-
|
540
|
-
|
541
530
|
for msg in reversed(messages):
|
542
531
|
if msg['role'] == 'user':
|
543
532
|
if isinstance(msg['content'], list):
|
@@ -556,14 +545,6 @@ if __name__ == "__main__":
|
|
556
545
|
else:
|
557
546
|
log.info(f"User message: {user_message}")
|
558
547
|
|
559
|
-
paired_messages = extract_chat_history_with_cache(chat_history)
|
560
|
-
|
561
|
-
command_response = handle_special_commands(user_message, vector_name, paired_messages)
|
562
|
-
|
563
|
-
if command_response is not None:
|
564
|
-
|
565
|
-
return self.make_openai_response(user_message, vector_name, command_response)
|
566
|
-
|
567
548
|
if image_uri:
|
568
549
|
data["image_uri"] = image_uri
|
569
550
|
data["mime"] = mime_type
|
@@ -14,7 +14,7 @@ sunholo/agents/fastapi/base.py,sha256=W-cyF8ZDUH40rc-c-Apw3-_8IIi2e4Y9qRtnoVnsc1
|
|
14
14
|
sunholo/agents/fastapi/qna_routes.py,sha256=lKHkXPmwltu9EH3RMwmD153-J6pE7kWQ4BhBlV3to-s,3864
|
15
15
|
sunholo/agents/flask/__init__.py,sha256=dEoByI3gDNUOjpX1uVKP7uPjhfFHJubbiaAv3xLopnk,63
|
16
16
|
sunholo/agents/flask/base.py,sha256=HLz3Z5efWaewTwSFEM6JH48NA9otoJBoVFJlARGk9L8,788
|
17
|
-
sunholo/agents/flask/vac_routes.py,sha256=
|
17
|
+
sunholo/agents/flask/vac_routes.py,sha256=al4-k-QNKH5bX9Ai8FP7DC1R7yomSO3Lnq_cugnUHcw,32622
|
18
18
|
sunholo/archive/__init__.py,sha256=qNHWm5rGPVOlxZBZCpA1wTYPbalizRT7f8X4rs2t290,31
|
19
19
|
sunholo/archive/archive.py,sha256=PxVfDtO2_2ZEEbnhXSCbXLdeoHoQVImo4y3Jr2XkCFY,1204
|
20
20
|
sunholo/auth/__init__.py,sha256=TeP-OY0XGxYV_8AQcVGoh35bvyWhNUcMRfhuD5l44Sk,91
|
@@ -168,9 +168,9 @@ sunholo/vertex/init.py,sha256=1OQwcPBKZYBTDPdyU7IM4X4OmiXLdsNV30C-fee2scQ,2875
|
|
168
168
|
sunholo/vertex/memory_tools.py,sha256=tBZxqVZ4InTmdBvLlOYwoSEWu4-kGquc-gxDwZCC4FA,7667
|
169
169
|
sunholo/vertex/safety.py,sha256=S9PgQT1O_BQAkcqauWncRJaydiP8Q_Jzmu9gxYfy1VA,2482
|
170
170
|
sunholo/vertex/type_dict_to_json.py,sha256=uTzL4o9tJRao4u-gJOFcACgWGkBOtqACmb6ihvCErL8,4694
|
171
|
-
sunholo-0.140.
|
172
|
-
sunholo-0.140.
|
173
|
-
sunholo-0.140.
|
174
|
-
sunholo-0.140.
|
175
|
-
sunholo-0.140.
|
176
|
-
sunholo-0.140.
|
171
|
+
sunholo-0.140.6.dist-info/licenses/LICENSE.txt,sha256=SdE3QjnD3GEmqqg9EX3TM9f7WmtOzqS1KJve8rhbYmU,11345
|
172
|
+
sunholo-0.140.6.dist-info/METADATA,sha256=J62v0HZ3NpRqt-zt0jpcA-KgGXyb5aEQyPGt6D4W-B8,10067
|
173
|
+
sunholo-0.140.6.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
|
174
|
+
sunholo-0.140.6.dist-info/entry_points.txt,sha256=bZuN5AIHingMPt4Ro1b_T-FnQvZ3teBes-3OyO0asl4,49
|
175
|
+
sunholo-0.140.6.dist-info/top_level.txt,sha256=wt5tadn5--5JrZsjJz2LceoUvcrIvxjHJe-RxuudxAk,8
|
176
|
+
sunholo-0.140.6.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|