mirror of https://github.com/Mai-with-u/MaiBot.git
拆分_execute_request
parent
b1dc34f7b1
commit
5d471440e6
|
|
@ -151,7 +151,7 @@ class ReplyGenerator:
|
||||||
return content
|
return content
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error(f"生成回复时出错: {e}")
|
logger.error(f"生成回复时出错: {str(e)}")
|
||||||
return "抱歉,我现在有点混乱,让我重新思考一下..."
|
return "抱歉,我现在有点混乱,让我重新思考一下..."
|
||||||
|
|
||||||
async def check_reply(self, reply: str, goal: str, retry_count: int = 0) -> Tuple[bool, str, bool]:
|
async def check_reply(self, reply: str, goal: str, retry_count: int = 0) -> Tuple[bool, str, bool]:
|
||||||
|
|
|
||||||
|
|
@ -255,7 +255,7 @@ class ReasoningChat:
|
||||||
|
|
||||||
info_catcher.catch_after_generate_response(timing_results["生成回复"])
|
info_catcher.catch_after_generate_response(timing_results["生成回复"])
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error(f"回复生成出现错误:str{e}")
|
logger.error(f"回复生成出现错误:{str(e)}")
|
||||||
response_set = None
|
response_set = None
|
||||||
|
|
||||||
if not response_set:
|
if not response_set:
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue