💄 small updates to ctx providers
This commit is contained in:
parent
077c6ea420
commit
63d39667f2
2 changed files with 3 additions and 2 deletions
|
|
@ -7,7 +7,7 @@ class GoogleContextProvider extends BaseContextProvider {
|
|||
displayTitle: "Google",
|
||||
description: "Attach the results of a Google search",
|
||||
dynamic: true,
|
||||
requiresQuery: false,
|
||||
requiresQuery: true,
|
||||
};
|
||||
|
||||
private _serperApiKey: string;
|
||||
|
|
|
|||
|
|
@ -90,9 +90,10 @@ function getFileItems(
|
|||
}
|
||||
return (
|
||||
res?.slice(0, 10).map((hit) => {
|
||||
const lastTwoParts = hit.id.split(/[\\/]/).slice(-2).join("/");
|
||||
const item = {
|
||||
title: hit.basename,
|
||||
description: hit.basename,
|
||||
description: lastTwoParts,
|
||||
id: hit.id,
|
||||
content: hit.id,
|
||||
label: hit.basename,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue