@myun/gimi-chat 0.9.1 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -8,7 +8,14 @@ var ReasoningSearch = function ReasoningSearch(_ref) {
|
|
|
8
8
|
var dispatch = useAppDispatch();
|
|
9
9
|
var searchResult = {};
|
|
10
10
|
try {
|
|
11
|
-
|
|
11
|
+
var temp = value;
|
|
12
|
+
if (typeof temp !== 'string') {
|
|
13
|
+
temp = JSON.stringify(temp);
|
|
14
|
+
}
|
|
15
|
+
while (typeof temp === 'string') {
|
|
16
|
+
temp = JSON.parse(temp);
|
|
17
|
+
}
|
|
18
|
+
searchResult = temp;
|
|
12
19
|
} catch (error) {
|
|
13
20
|
return '';
|
|
14
21
|
}
|
|
@@ -630,7 +630,9 @@ var useCommonChatAPI = function useCommonChatAPI(props) {
|
|
|
630
630
|
_context8.next = 9;
|
|
631
631
|
return rewriteRecommendListFormHistory(chatList, "".concat(lastUserRequestMessage.chatId));
|
|
632
632
|
case 9:
|
|
633
|
-
|
|
633
|
+
if (lastMessage.stop === 0) {
|
|
634
|
+
getRelatedCourses((lastUserMessage === null || lastUserMessage === void 0 ? void 0 : lastUserMessage.content) || '');
|
|
635
|
+
}
|
|
634
636
|
case 10:
|
|
635
637
|
case "end":
|
|
636
638
|
return _context8.stop();
|