mirror of
https://github.com/idootop/mi-gpt.git
synced 2025-04-07 21:39:20 +00:00
fix: 部分场景下 LLM 返回数据格式异常的问题
This commit is contained in:
parent
f316f68b3c
commit
02b033402e
|
@ -67,6 +67,6 @@ export class LongTermMemoryAgent {
|
|||
shortTermMemory: lastOf(newMemories)!.text,
|
||||
}),
|
||||
});
|
||||
return jsonDecode(res?.content)?.longTermMemories;
|
||||
return jsonDecode(res?.content)?.longTermMemories?.toString();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -78,6 +78,6 @@ export class ShortTermMemoryAgent {
|
|||
.join("\n"),
|
||||
}),
|
||||
});
|
||||
return jsonDecode(res?.content)?.shortTermMemories;
|
||||
return jsonDecode(res?.content)?.shortTermMemories?.toString();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user