pycoze 0.1.295__py3-none-any.whl → 0.1.297__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.
- pycoze/ai/__init__.py +25 -14
- pycoze/bot/agent_chat.py +2 -2
- {pycoze-0.1.295.dist-info → pycoze-0.1.297.dist-info}/METADATA +1 -1
- {pycoze-0.1.295.dist-info → pycoze-0.1.297.dist-info}/RECORD +7 -7
- {pycoze-0.1.295.dist-info → pycoze-0.1.297.dist-info}/LICENSE +0 -0
- {pycoze-0.1.295.dist-info → pycoze-0.1.297.dist-info}/WHEEL +0 -0
- {pycoze-0.1.295.dist-info → pycoze-0.1.297.dist-info}/top_level.txt +0 -0
pycoze/ai/__init__.py
CHANGED
@@ -1,14 +1,25 @@
|
|
1
|
-
from .vram_reserve import reserve_vram, reserve_vram_retry, unreserve_vram
|
2
|
-
from .llm import
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
1
|
+
from .vram_reserve import reserve_vram, reserve_vram_retry, unreserve_vram
|
2
|
+
from .llm import (
|
3
|
+
chat,
|
4
|
+
chat_stream,
|
5
|
+
chat_async,
|
6
|
+
chat_stream_async,
|
7
|
+
extract,
|
8
|
+
yes_or_no,
|
9
|
+
extract_code,
|
10
|
+
text_to_image_prompt,
|
11
|
+
)
|
12
|
+
|
13
|
+
__all__ = [
|
14
|
+
reserve_vram,
|
15
|
+
reserve_vram_retry,
|
16
|
+
unreserve_vram,
|
17
|
+
chat,
|
18
|
+
chat_stream,
|
19
|
+
chat_async,
|
20
|
+
chat_stream_async,
|
21
|
+
extract,
|
22
|
+
yes_or_no,
|
23
|
+
extract_code,
|
24
|
+
text_to_image_prompt,
|
25
|
+
]
|
pycoze/bot/agent_chat.py
CHANGED
@@ -40,8 +40,8 @@ async def check_interrupt_file(interval, interrupt_file,agent_task):
|
|
40
40
|
if os.path.exists(interrupt_file):
|
41
41
|
os.remove(interrupt_file)
|
42
42
|
agent_task.cancel()
|
43
|
-
break
|
44
|
-
|
43
|
+
break
|
44
|
+
|
45
45
|
async def run_with_interrupt_check(agent, history, tool_compatibility_mode, interrupt_file, check_interval=1):
|
46
46
|
clear_chat_data()
|
47
47
|
try:
|
@@ -1,5 +1,5 @@
|
|
1
1
|
pycoze/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
-
pycoze/ai/__init__.py,sha256=
|
2
|
+
pycoze/ai/__init__.py,sha256=_LAz1Ris-ygOiy3treJNKvIMAhu4N-x3DvHSFUleuU8,449
|
3
3
|
pycoze/ai/vram_reserve.py,sha256=DRxKzqf89fLAts0DzU8e19z9kecIF8OdMkQnJlCKZV0,4244
|
4
4
|
pycoze/ai/llm/__init__.py,sha256=5_AnOrzXI2V6ZZsLUWW1v5ATRWmJy53JLN9jfSZQXCg,249
|
5
5
|
pycoze/ai/llm/chat.py,sha256=sQZT0ImvRW81fXdlKG0ZrHdDB8g5M4iudaWdG4Kpd6Q,6373
|
@@ -11,7 +11,7 @@ pycoze/api/lib/tab_cls.py,sha256=lD2Uvylzi-zsHj-27YI1mS4ggbIGtCi3vypvGvY48gM,261
|
|
11
11
|
pycoze/api/lib/view.py,sha256=_PIpTfeuTPPlMDKshMGsqFQYMq7ZiO4Hg5XwHwDoU60,7357
|
12
12
|
pycoze/api/lib/window_cls.py,sha256=bTkQCzQZ7i3pYXB70bUSTBNJ9C4TW_X3yMae1VkquGk,1944
|
13
13
|
pycoze/bot/__init__.py,sha256=JxnRoCCqx_LFyVb3pLu0qYCsH8ZLuAaMXAtvVUuCHuE,78
|
14
|
-
pycoze/bot/agent_chat.py,sha256=
|
14
|
+
pycoze/bot/agent_chat.py,sha256=Rkq8DcQqaXLQA4rR8BZfk9vVqSTvOprtRgIvdLP-M94,4169
|
15
15
|
pycoze/bot/bot.py,sha256=_qmUTZ09FmRLifHrW5stDZWGVK6yuMEMBC3fmeYJnqk,844
|
16
16
|
pycoze/bot/agent/__init__.py,sha256=3wE8_FFQS8j2BY-g9Cr-onV0POEvDRZaw_NCzpqrNus,265
|
17
17
|
pycoze/bot/agent/agent.py,sha256=qkLIRgSMNT1VD_UD0e6kYUuOTOqylQiYSCay6HZ12LA,3653
|
@@ -35,8 +35,8 @@ pycoze/utils/arg.py,sha256=jop1tBfe5hYkHW1NSpCeaZBEznkgguBscj_7M2dWfrs,503
|
|
35
35
|
pycoze/utils/env.py,sha256=5pWlXfM1F5ZU9hhv1rHlDEanjEW5wf0nbyez9bNRqqA,559
|
36
36
|
pycoze/utils/socket.py,sha256=bZbFFRH4mfThzRqt55BAAGQ6eICx_ja4x8UGGrUdAm8,2428
|
37
37
|
pycoze/utils/text_or_file.py,sha256=gpxZVWt2DW6YiEg_MnMuwg36VNf3TX383QD_1oZNB0Y,551
|
38
|
-
pycoze-0.1.
|
39
|
-
pycoze-0.1.
|
40
|
-
pycoze-0.1.
|
41
|
-
pycoze-0.1.
|
42
|
-
pycoze-0.1.
|
38
|
+
pycoze-0.1.297.dist-info/LICENSE,sha256=QStd_Qsd0-kAam_-sOesCIp_uKrGWeoKwt9M49NVkNU,1090
|
39
|
+
pycoze-0.1.297.dist-info/METADATA,sha256=fn_y-h8lW6BLRMdpkOnlF20yj7_qdcmV15CpqhLX8dQ,755
|
40
|
+
pycoze-0.1.297.dist-info/WHEEL,sha256=ewwEueio1C2XeHTvT17n8dZUJgOvyCWCt0WVNLClP9o,92
|
41
|
+
pycoze-0.1.297.dist-info/top_level.txt,sha256=76dPeDhKvOCleL3ZC5gl1-y4vdS1tT_U1hxWVAn7sFo,7
|
42
|
+
pycoze-0.1.297.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|