From a4b1d75c1a4dcc7147c61c6c9f7e2a20a0595178 Mon Sep 17 00:00:00 2001 From: Meng Zhang Date: Fri, 1 Dec 2023 15:35:38 +0800 Subject: [PATCH] fix: tabby-ui should use AND condition to search function (#926) --- ee/tabby-ui/components/prompt-form.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ee/tabby-ui/components/prompt-form.tsx b/ee/tabby-ui/components/prompt-form.tsx index dcbe38a..38c2c9b 100644 --- a/ee/tabby-ui/components/prompt-form.tsx +++ b/ee/tabby-ui/components/prompt-form.tsx @@ -99,7 +99,7 @@ function PromptFormRenderer( const queryNameMatches = getSearchCompletionQueryName(value, end) const queryName = queryNameMatches?.[1] if (queryName) { - const query = encodeURIComponent(`name:${queryName} kind:function`) + const query = encodeURIComponent(`name:${queryName} AND kind:function`) const url = `/v1beta/search?q=${query}` latestFetchKey.current = url setQueryCompletionUrl(url)