mirror of
https://github.com/ItzCrazyKns/Perplexica.git
synced 2025-12-25 21:18:14 +00:00
feat(actions-registry): add sources, update web search to become active on web
This commit is contained in:
@@ -82,6 +82,7 @@ const webSearchAction: ResearchAction<typeof actionSchema> = {
|
||||
return prompt;
|
||||
},
|
||||
enabled: (config) =>
|
||||
config.sources.includes('web') &&
|
||||
config.classification.classification.skipSearch === false,
|
||||
execute: async (input, additionalConfig) => {
|
||||
input.queries = input.queries.slice(0, 3);
|
||||
|
||||
Reference in New Issue
Block a user