From e41a9beaaeb30d1b0f4feacdb5ccd7647b71eb7c Mon Sep 17 00:00:00 2001
From: WinSun <35953131+fiyen@users.noreply.github.com>
Date: Sat, 9 Nov 2024 12:37:15 +0800
Subject: [PATCH] Fix the problem of web-searching can not complete searching
 sessions when using bing search. (#2611)

Fix the problem of web-searching can not complete searching sessions.
---
 server/utils/agents/aibitat/plugins/web-browsing.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/utils/agents/aibitat/plugins/web-browsing.js b/server/utils/agents/aibitat/plugins/web-browsing.js
index 0c139515f..2d3701d1a 100644
--- a/server/utils/agents/aibitat/plugins/web-browsing.js
+++ b/server/utils/agents/aibitat/plugins/web-browsing.js
@@ -306,7 +306,7 @@ const webBrowsing = {
             if (searchResponse.length === 0)
               return `No information was found online for the search query.`;
             this.super.introspect(
-              `${this.caller}: I found ${data.length} results - looking over them now.`
+              `${this.caller}: I found ${searchResponse.length} results - looking over them now.`
             );
             return JSON.stringify(searchResponse);
           },
-- 
GitLab