mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-27 01:23:55 +08:00
增加智控台管理【本地记忆】功能
This commit is contained in:
@@ -144,6 +144,21 @@ def get_agent_models(
|
||||
},
|
||||
)
|
||||
|
||||
def save_mem_local_short(
|
||||
mac_address: str, short_momery: str
|
||||
) -> Optional[Dict]:
|
||||
try:
|
||||
return ManageApiClient._instance._execute_request(
|
||||
"PUT",
|
||||
f"/agent/device/" + mac_address,
|
||||
json={
|
||||
"summaryMemory": short_momery,
|
||||
},
|
||||
)
|
||||
except Exception as e:
|
||||
print(f"存储短期记忆到服务器失败: {e}")
|
||||
return None
|
||||
|
||||
|
||||
def report(
|
||||
mac_address: str, session_id: str, chat_type: int, content: str, audio
|
||||
|
||||
Reference in New Issue
Block a user