tuning performance

This commit is contained in:
geekan 2023-12-22 17:48:54 +08:00
parent a7a1195a31
commit c68f882e14
8 changed files with 12 additions and 12 deletions

View file

@ -40,7 +40,7 @@ EXAMPLE_AND_INSTRUCTION = """
{format_example}
# Instruction: Based on the actual code situation, follow one of the "Format example".
# Instruction: Based on the actual code situation, follow one of the "Format example". Return only 1 file under review.
## Code Review: Ordered List. Based on the "Code to be Reviewed", provide key, clear, concise, and specific answer. If any answer is no, explain how to fix it step by step.
1. Is the code implemented as per the requirements? If not, how to achieve it? Analyse it step by step.

View file

@ -407,7 +407,7 @@ class Role(BaseModel):
return True
async def _act(self) -> Message:
logger.info(f"{self._setting}: to do {self._rc.todo}")
logger.info(f"{self._setting}: to do {self._rc.todo}({self._rc.todo.name})")
response = await self._rc.todo.run(self._rc.important_memory)
if isinstance(response, (ActionOutput, ActionNode)):
msg = Message(

View file

@ -57,7 +57,7 @@ class Searcher(Role):
async def _act_sp(self) -> Message:
"""Performs the search action in a single process."""
logger.info(f"{self._setting}: to do {self._rc.todo}")
logger.info(f"{self._setting}: to do {self._rc.todo}({self._rc.todo.name})")
response = await self._rc.todo.run(self._rc.memory.get(k=0))
if isinstance(response, (ActionOutput, ActionNode)):