Skip to content
This repository was archived by the owner on Jul 1, 2024. It is now read-only.

Commit 73f8458

Browse files
committed
Sun Apr 21 21:50:55 PDT 2024
1 parent e3e7f0c commit 73f8458

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

packages/lang/assistant/index.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,13 @@ export const parseXmlLikeResponse = (input: string) => {
3030
ignoreInstruction: true,
3131
})
3232

33-
const message = Array.isArray(data.root._text) ?
34-
data.root._text.join(' ') :
35-
data.root._text
33+
const result = data.root?._text?.length ?
34+
data.root._text :
35+
data.root.result._text
36+
37+
const message = Array.isArray(result) ?
38+
result.join(' ') :
39+
result
3640

3741
return {
3842
message,

redis/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: "Redis Stack"
2-
description: "Redis Stack installs a Redis server with additional database capabilities and the RedisInsight."
2+
description: "Redis Stack installs a Redis server with additional database capabilities and the RedisInsight"
33
version: "7.2.0-v10"
44
slug: "redis"
55
init: false

0 commit comments

Comments
 (0)