拆分_execute_request
This commit is contained in:
@@ -151,7 +151,7 @@ class ReplyGenerator:
|
||||
return content
|
||||
|
||||
except Exception as e:
|
||||
logger.error(f"生成回复时出错: {e}")
|
||||
logger.error(f"生成回复时出错: {str(e)}")
|
||||
return "抱歉,我现在有点混乱,让我重新思考一下..."
|
||||
|
||||
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["生成回复"])
|
||||
except Exception as e:
|
||||
logger.error(f"回复生成出现错误:str{e}")
|
||||
logger.error(f"回复生成出现错误:{str(e)}")
|
||||
response_set = None
|
||||
|
||||
if not response_set:
|
||||
|
||||
1231
src/plugins/models/utils_model_new.py
Normal file
1231
src/plugins/models/utils_model_new.py
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user