aboutsummaryrefslogtreecommitdiff
path: root/src/server/ApiManagers/AssistantManager.ts
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2025-02-09 15:43:08 -0500
committerbobzel <zzzman@gmail.com>2025-02-09 15:43:08 -0500
commit5df52296c65c4eed27b06e4d3fd22e935df5427c (patch)
treee866cbc8b6198f3cfb425c007e0abc65a9c3ff5e /src/server/ApiManagers/AssistantManager.ts
parentbb624694da02a56ce10e3bfa4c75957592e3a86d (diff)
trying to get assistant to create Docs properly
Diffstat (limited to 'src/server/ApiManagers/AssistantManager.ts')
-rw-r--r--src/server/ApiManagers/AssistantManager.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/server/ApiManagers/AssistantManager.ts b/src/server/ApiManagers/AssistantManager.ts
index 4d2068014..b53581aa2 100644
--- a/src/server/ApiManagers/AssistantManager.ts
+++ b/src/server/ApiManagers/AssistantManager.ts
@@ -23,7 +23,6 @@ import { AI_Document } from '../../client/views/nodes/chatbot/types/types';
import { Method } from '../RouteManager';
import { filesDirectory, publicDirectory } from '../SocketData';
import ApiManager, { Registration } from './ApiManager';
-import { getServerPath } from '../../client/util/reportManager/reportManagerUtils';
// Enumeration of directories where different file types are stored
export enum Directory {
@@ -157,7 +156,7 @@ export default class AssistantManager extends ApiManager {
try {
// Fetch initial search results
let response = await fetchSearchResults(startIndex);
- let initialResults =
+ const initialResults =
response.data.items?.map(item => ({
url: item.link,
snippet: item.snippet,
@@ -531,7 +530,7 @@ function spawnPythonProcess(jobId: string, file_name: string, file_data: string)
try {
const errorOutput = JSON.parse(lastLine);
jobResults[jobId] = errorOutput;
- } catch (err) {
+ } catch {
jobResults[jobId] = { error: 'Python process failed' };
}
} else {