update:替换词功能

This commit is contained in:
rainv123
2026-04-24 10:06:26 +08:00
parent 550397de98
commit 606a42cfb2
44 changed files with 1030 additions and 37 deletions
@@ -183,6 +183,18 @@ async def get_agent_models(
)
async def get_correct_words(mac_address: str) -> Optional[Dict]:
"""获取智能体替换词"""
try:
return await ManageApiClient._instance._execute_async_request(
"POST", "/config/correct-words",
json={"macAddress": mac_address}
)
except Exception as e:
print(f"获取替换词失败: {e}")
return None
async def generate_and_save_chat_summary(session_id: str) -> Optional[Dict]:
"""生成并保存聊天记录总结"""
try: