pycoze 0.1.175__tar.gz → 0.1.176__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {pycoze-0.1.175 → pycoze-0.1.176}/PKG-INFO +1 -1
- {pycoze-0.1.175 → pycoze-0.1.176}/pycoze/bot/bot.py +1 -1
- {pycoze-0.1.175 → pycoze-0.1.176}/pycoze.egg-info/PKG-INFO +1 -1
- {pycoze-0.1.175 → pycoze-0.1.176}/setup.py +1 -1
- {pycoze-0.1.175 → pycoze-0.1.176}/LICENSE +0 -0
- {pycoze-0.1.175 → pycoze-0.1.176}/README.md +0 -0
- {pycoze-0.1.175 → pycoze-0.1.176}/pycoze/__init__.py +0 -0
- {pycoze-0.1.175 → pycoze-0.1.176}/pycoze/ai/__init__.py +0 -0
- {pycoze-0.1.175 → pycoze-0.1.176}/pycoze/ai/vram_reserve.py +0 -0
- {pycoze-0.1.175 → pycoze-0.1.176}/pycoze/bot/__init__.py +0 -0
- {pycoze-0.1.175 → pycoze-0.1.176}/pycoze/bot/agent/__init__.py +0 -0
- {pycoze-0.1.175 → pycoze-0.1.176}/pycoze/bot/agent/agent.py +0 -0
- {pycoze-0.1.175 → pycoze-0.1.176}/pycoze/bot/agent/agent_types/__init__.py +0 -0
- {pycoze-0.1.175 → pycoze-0.1.176}/pycoze/bot/agent/agent_types/const.py +0 -0
- {pycoze-0.1.175 → pycoze-0.1.176}/pycoze/bot/agent/agent_types/openai_func_call_agent.py +0 -0
- {pycoze-0.1.175 → pycoze-0.1.176}/pycoze/bot/agent/assistant.py +0 -0
- {pycoze-0.1.175 → pycoze-0.1.176}/pycoze/bot/agent/chat.py +0 -0
- {pycoze-0.1.175 → pycoze-0.1.176}/pycoze/bot/agent_chat.py +0 -0
- {pycoze-0.1.175 → pycoze-0.1.176}/pycoze/reference/__init__.py +0 -0
- {pycoze-0.1.175 → pycoze-0.1.176}/pycoze/reference/bot.py +0 -0
- {pycoze-0.1.175 → pycoze-0.1.176}/pycoze/reference/lib.py +0 -0
- {pycoze-0.1.175 → pycoze-0.1.176}/pycoze/reference/tool.py +0 -0
- {pycoze-0.1.175 → pycoze-0.1.176}/pycoze/ui/__init__.py +0 -0
- {pycoze-0.1.175 → pycoze-0.1.176}/pycoze/ui/base.py +0 -0
- {pycoze-0.1.175 → pycoze-0.1.176}/pycoze/ui/color.py +0 -0
- {pycoze-0.1.175 → pycoze-0.1.176}/pycoze/ui/typ.py +0 -0
- {pycoze-0.1.175 → pycoze-0.1.176}/pycoze/ui/ui_def.py +0 -0
- {pycoze-0.1.175 → pycoze-0.1.176}/pycoze/utils/__init__.py +0 -0
- {pycoze-0.1.175 → pycoze-0.1.176}/pycoze/utils/arg.py +0 -0
- {pycoze-0.1.175 → pycoze-0.1.176}/pycoze/utils/text_or_file.py +0 -0
- {pycoze-0.1.175 → pycoze-0.1.176}/pycoze.egg-info/SOURCES.txt +0 -0
- {pycoze-0.1.175 → pycoze-0.1.176}/pycoze.egg-info/dependency_links.txt +0 -0
- {pycoze-0.1.175 → pycoze-0.1.176}/pycoze.egg-info/top_level.txt +0 -0
- {pycoze-0.1.175 → pycoze-0.1.176}/setup.cfg +0 -0
@@ -49,7 +49,6 @@ def chat(bot_setting_file: str):
|
|
49
49
|
|
50
50
|
next_input_text = ""
|
51
51
|
while agent_chat_thread.is_alive():
|
52
|
-
print("alive")
|
53
52
|
if not input_queue.empty():
|
54
53
|
next_input_text = input_queue.peek()
|
55
54
|
if next_input_text == INTERRUPT_MESSAGE:
|
@@ -59,6 +58,7 @@ def chat(bot_setting_file: str):
|
|
59
58
|
time.sleep(0.1) # 每隔 0.1 秒检查一次
|
60
59
|
if next_input_text != INTERRUPT_MESSAGE:
|
61
60
|
history.append(AIMessage(content=CHAT_DATA["output"]))
|
61
|
+
print("history", history)
|
62
62
|
except json.JSONDecodeError:
|
63
63
|
print("Invalid JSON format in input message.")
|
64
64
|
except KeyError:
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|