feat: chat前的前文剪裁逻辑

This commit is contained in:
RockChinQ
2024-02-01 17:42:51 +08:00
parent 6f2d7d96d0
commit a9d92115f8
4 changed files with 33 additions and 14 deletions

View File

@@ -149,7 +149,8 @@ class Controller:
await self._execute_from_stage(0, query)
except Exception as e:
self.ap.logger.error(f"处理请求时出错 {query}: {e}")
self.ap.logger.debug(f"处理请求时出错 {query}: {e}", exc_info=True)
# self.ap.logger.debug(f"处理请求时出错 {query}: {e}", exc_info=True)
traceback.print_exc()
finally:
self.ap.logger.debug(f"Query {query} processed")