fix: tabby-ui should use AND condition to search function (#926)
parent
2c2c95ccd7
commit
a4b1d75c1a
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue