Skip to content

Commit 69d0f11

Browse files
Improve parsed data
1 parent 5f08736 commit 69d0f11

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/utils/agents/aibitat/plugins/web-browsing.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,9 @@ const webBrowsing = {
186186

187187
const data = [];
188188
if (response.hasOwnProperty("knowledge_graph"))
189-
data.push(response.knowledge_graph);
189+
data.push(response.knowledge_graph?.description);
190190
if (response.hasOwnProperty("answer_box"))
191-
data.push(response.answer_box.answer);
191+
data.push(response.answer_box?.answer);
192192
response.organic_results?.forEach((searchResult) => {
193193
const { title, link, snippet } = searchResult;
194194
data.push({

0 commit comments

Comments
 (0)