refac
This commit is contained in:
@@ -300,7 +300,7 @@ async def execute_automation(app, automation: AutomationModel) -> None:
|
|||||||
"title": automation.name,
|
"title": automation.name,
|
||||||
"models": [model_id],
|
"models": [model_id],
|
||||||
"history": {
|
"history": {
|
||||||
"currentId": user_msg_id,
|
"currentId": assistant_msg_id,
|
||||||
"messages": {
|
"messages": {
|
||||||
user_msg_id: {
|
user_msg_id: {
|
||||||
"id": user_msg_id,
|
"id": user_msg_id,
|
||||||
@@ -316,6 +316,7 @@ async def execute_automation(app, automation: AutomationModel) -> None:
|
|||||||
"parentId": user_msg_id,
|
"parentId": user_msg_id,
|
||||||
"role": "assistant",
|
"role": "assistant",
|
||||||
"content": "",
|
"content": "",
|
||||||
|
"done": False,
|
||||||
"model": model_id,
|
"model": model_id,
|
||||||
"childrenIds": [],
|
"childrenIds": [],
|
||||||
"timestamp": int(time.time()),
|
"timestamp": int(time.time()),
|
||||||
|
|||||||
Reference in New Issue
Block a user