fix: tabby-ui should use AND condition to search function (#926)

add-signin-page
Meng Zhang 2023-12-01 15:35:38 +08:00 committed by GitHub
parent 2c2c95ccd7
commit a4b1d75c1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)