Skip to content

Commit

Permalink
试试看?
Browse files Browse the repository at this point in the history
HydroGest committed Jan 26, 2025
1 parent a3e247a commit 20ece5e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/core/src/bot.ts
Original file line number Diff line number Diff line change
@@ -185,11 +185,7 @@ export class Bot {
if (jsonMatch) {
try {
const parser = new XMLParser({
ignoreAttributes: false, // 保留属性
parseTagValue: false, // 不自动转换标签值类型
parseAttributeValue: false, // 不自动转换属性值类型
preserveOrder: true, // 保留节点顺序
trimValues: false // 保留空格
preserveOrder: true
});
LLMResponse = parser.parse(content);
this.addContext(AssistantMessage(JSON.stringify(LLMResponse)));

0 comments on commit 20ece5e

Please sign in to comment.