From 8352f2fd982c008f319b5151ae63a88f8d0baca7 Mon Sep 17 00:00:00 2001 From: berkingurcan Date: Wed, 3 Jul 2024 14:35:03 +0300 Subject: [PATCH] Update demoSearch.ts --- lib/tools/demoSearch.ts | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/lib/tools/demoSearch.ts b/lib/tools/demoSearch.ts index 80cc20d..91b67ee 100644 --- a/lib/tools/demoSearch.ts +++ b/lib/tools/demoSearch.ts @@ -26,14 +26,7 @@ const functionDescription: ChatCompletionCreateParams.Function = { 'Search for context in discord threads', parameters: { type: 'object', - properties: { - query: { - type: 'string', - description: - 'The query to search for. 1-3 sentences or words are enough. English only.' - } - }, - required: ['query'] + properties: {} } } @@ -96,7 +89,7 @@ export const demoSearchTool: Tool = { callable: runTool } -export const demoSearchToolRunnable =(message: string): RunnableToolFunction<{ query: string }> => ({ +export const demoSearchToolRunnable = (message: string): RunnableToolFunction<{ query: string }> => ({ type: 'function', function: { name: functionDescription.name, @@ -106,8 +99,7 @@ export const demoSearchToolRunnable =(message: string): RunnableToolFunction<{ q 'Search for context in discord threads', parameters: { type: 'object', - properties: { - } + properties: {} } } })