Bug fix of thinking llm in vllm (#3510)

This commit is contained in:
dog-last
2025-10-03 19:13:08 +05:30
committed by GitHub
parent 346d89d244
commit 51ce6f1347
3 changed files with 122 additions and 2 deletions
+3
View File
@@ -889,6 +889,7 @@ class Memory(MemoryBase):
try:
procedural_memory = self.llm.generate_response(messages=parsed_messages)
procedural_memory = remove_code_blocks(procedural_memory)
except Exception as e:
logger.error(f"Error generating procedural memory summary: {e}")
raise
@@ -1784,6 +1785,8 @@ class AsyncMemory(MemoryBase):
procedural_memory = response.content
else:
procedural_memory = await asyncio.to_thread(self.llm.generate_response, messages=parsed_messages)
procedural_memory = remove_code_blocks(procedural_memory)
except Exception as e:
logger.error(f"Error generating procedural memory summary: {e}")
raise