lint fixes
This commit is contained in:
parent
338082f0aa
commit
888fa356b9
|
|
@ -102,7 +102,7 @@ class Playwright_DocumentLoaders implements INode {
|
|||
type: 'string',
|
||||
optional: true,
|
||||
additionalParams: true,
|
||||
description: 'CSS selectors like .div or #div',
|
||||
description: 'CSS selectors like .div or #div'
|
||||
},
|
||||
{
|
||||
label: 'Metadata',
|
||||
|
|
@ -119,7 +119,7 @@ class Playwright_DocumentLoaders implements INode {
|
|||
const metadata = nodeData.inputs?.metadata
|
||||
const relativeLinksMethod = nodeData.inputs?.relativeLinksMethod as string
|
||||
let limit = nodeData.inputs?.limit as string
|
||||
let waitUntilGoToOption = nodeData.inputs?.waitUntilGoToOption as "load" | "domcontentloaded" | "networkidle" | "commit" | undefined
|
||||
let waitUntilGoToOption = nodeData.inputs?.waitUntilGoToOption as 'load' | 'domcontentloaded' | 'networkidle' | 'commit' | undefined
|
||||
let waitForSelector = nodeData.inputs?.waitForSelector as string
|
||||
|
||||
let url = nodeData.inputs?.url as string
|
||||
|
|
@ -136,14 +136,14 @@ class Playwright_DocumentLoaders implements INode {
|
|||
args: ['--no-sandbox'],
|
||||
headless: true
|
||||
}
|
||||
};
|
||||
}
|
||||
if (waitUntilGoToOption) {
|
||||
config['gotoOptions'] = {
|
||||
waitUntil: waitUntilGoToOption
|
||||
}
|
||||
}
|
||||
if (waitForSelector) {
|
||||
config['evaluate'] = async (page: Page, browser: Browser): Promise<string> => {
|
||||
config['evaluate'] = async (page: Page, _: Browser): Promise<string> => {
|
||||
await page.waitForSelector(waitForSelector)
|
||||
|
||||
const result = await page.evaluate(() => document.body.innerHTML)
|
||||
|
|
|
|||
|
|
@ -63,7 +63,8 @@ class Puppeteer_DocumentLoaders implements INode {
|
|||
type: 'number',
|
||||
optional: true,
|
||||
additionalParams: true,
|
||||
description: 'Only used when "Get Relative Links Method" is selected. Set 0 to retrieve all relative links, default limit is 10.',
|
||||
description:
|
||||
'Only used when "Get Relative Links Method" is selected. Set 0 to retrieve all relative links, default limit is 10.',
|
||||
warning: `Retrieving all links might take long time, and all links will be upserted again if the flow's state changed (eg: different URL, chunk size, etc)`
|
||||
},
|
||||
{
|
||||
|
|
@ -75,12 +76,12 @@ class Puppeteer_DocumentLoaders implements INode {
|
|||
{
|
||||
label: 'Load',
|
||||
name: 'load',
|
||||
description: `When the initial HTML document\'s DOM has been loaded and parsed`
|
||||
description: `When the initial HTML document's DOM has been loaded and parsed`
|
||||
},
|
||||
{
|
||||
label: 'DOM Content Loaded',
|
||||
name: 'domcontentloaded',
|
||||
description: `When the complete HTML document\'s DOM has been loaded and parsed`
|
||||
description: `When the complete HTML document's DOM has been loaded and parsed`
|
||||
},
|
||||
{
|
||||
label: 'Network Idle 0',
|
||||
|
|
@ -102,7 +103,7 @@ class Puppeteer_DocumentLoaders implements INode {
|
|||
type: 'string',
|
||||
optional: true,
|
||||
additionalParams: true,
|
||||
description: 'CSS selectors like .div or #div',
|
||||
description: 'CSS selectors like .div or #div'
|
||||
},
|
||||
{
|
||||
label: 'Metadata',
|
||||
|
|
@ -136,14 +137,14 @@ class Puppeteer_DocumentLoaders implements INode {
|
|||
args: ['--no-sandbox'],
|
||||
headless: 'new'
|
||||
}
|
||||
};
|
||||
}
|
||||
if (waitUntilGoToOption) {
|
||||
config['gotoOptions'] = {
|
||||
waitUntil: waitUntilGoToOption
|
||||
}
|
||||
}
|
||||
if (waitForSelector) {
|
||||
config['evaluate'] = async (page: Page, browser: Browser): Promise<string> => {
|
||||
config['evaluate'] = async (page: Page, _: Browser): Promise<string> => {
|
||||
await page.waitForSelector(waitForSelector)
|
||||
|
||||
const result = await page.evaluate(() => document.body.innerHTML)
|
||||
|
|
|
|||
|
|
@ -16,11 +16,7 @@
|
|||
"version": 1,
|
||||
"name": "chatOpenAI",
|
||||
"type": "ChatOpenAI",
|
||||
"baseClasses": [
|
||||
"ChatOpenAI",
|
||||
"BaseChatModel",
|
||||
"BaseLanguageModel"
|
||||
],
|
||||
"baseClasses": ["ChatOpenAI", "BaseChatModel", "BaseLanguageModel"],
|
||||
"category": "Chat Models",
|
||||
"description": "Wrapper around OpenAI large language models that use the Chat endpoint",
|
||||
"inputParams": [
|
||||
|
|
@ -28,9 +24,7 @@
|
|||
"label": "Connect Credential",
|
||||
"name": "credential",
|
||||
"type": "credential",
|
||||
"credentialNames": [
|
||||
"openAIApi"
|
||||
],
|
||||
"credentialNames": ["openAIApi"],
|
||||
"id": "chatOpenAI_0-input-credential-credential"
|
||||
},
|
||||
{
|
||||
|
|
@ -176,10 +170,7 @@
|
|||
"version": 1,
|
||||
"name": "openAIEmbeddings",
|
||||
"type": "OpenAIEmbeddings",
|
||||
"baseClasses": [
|
||||
"OpenAIEmbeddings",
|
||||
"Embeddings"
|
||||
],
|
||||
"baseClasses": ["OpenAIEmbeddings", "Embeddings"],
|
||||
"category": "Embeddings",
|
||||
"description": "OpenAI API to generate embeddings for a given text",
|
||||
"inputParams": [
|
||||
|
|
@ -187,9 +178,7 @@
|
|||
"label": "Connect Credential",
|
||||
"name": "credential",
|
||||
"type": "credential",
|
||||
"credentialNames": [
|
||||
"openAIApi"
|
||||
],
|
||||
"credentialNames": ["openAIApi"],
|
||||
"id": "openAIEmbeddings_0-input-credential-credential"
|
||||
},
|
||||
{
|
||||
|
|
@ -329,10 +318,7 @@
|
|||
"version": 1,
|
||||
"name": "conversationalRetrievalQAChain",
|
||||
"type": "ConversationalRetrievalQAChain",
|
||||
"baseClasses": [
|
||||
"ConversationalRetrievalQAChain",
|
||||
"BaseChain"
|
||||
],
|
||||
"baseClasses": ["ConversationalRetrievalQAChain", "BaseChain"],
|
||||
"category": "Chains",
|
||||
"description": "Document QA - built on RetrievalQAChain to provide a chat history component",
|
||||
"inputParams": [
|
||||
|
|
@ -442,9 +428,7 @@
|
|||
"version": 1,
|
||||
"name": "cheerioWebScraper",
|
||||
"type": "Document",
|
||||
"baseClasses": [
|
||||
"Document"
|
||||
],
|
||||
"baseClasses": ["Document"],
|
||||
"category": "Document Loaders",
|
||||
"description": "Load data from webpages",
|
||||
"inputParams": [
|
||||
|
|
@ -543,11 +527,7 @@
|
|||
"version": 1,
|
||||
"name": "pineconeUpsert",
|
||||
"type": "Pinecone",
|
||||
"baseClasses": [
|
||||
"Pinecone",
|
||||
"VectorStoreRetriever",
|
||||
"BaseRetriever"
|
||||
],
|
||||
"baseClasses": ["Pinecone", "VectorStoreRetriever", "BaseRetriever"],
|
||||
"category": "Vector Stores",
|
||||
"description": "Upsert documents to Pinecone",
|
||||
"inputParams": [
|
||||
|
|
@ -555,9 +535,7 @@
|
|||
"label": "Connect Credential",
|
||||
"name": "credential",
|
||||
"type": "credential",
|
||||
"credentialNames": [
|
||||
"pineconeApi"
|
||||
],
|
||||
"credentialNames": ["pineconeApi"],
|
||||
"id": "pineconeUpsert_0-input-credential-credential"
|
||||
},
|
||||
{
|
||||
|
|
@ -602,9 +580,7 @@
|
|||
}
|
||||
],
|
||||
"inputs": {
|
||||
"document": [
|
||||
"{{cheerioWebScraper_0.data.instance}}"
|
||||
],
|
||||
"document": ["{{cheerioWebScraper_0.data.instance}}"],
|
||||
"embeddings": "{{openAIEmbeddings_0.data.instance}}",
|
||||
"pineconeIndex": "",
|
||||
"pineconeNamespace": "",
|
||||
|
|
@ -659,11 +635,7 @@
|
|||
"version": 1,
|
||||
"name": "motorheadMemory",
|
||||
"type": "MotorheadMemory",
|
||||
"baseClasses": [
|
||||
"MotorheadMemory",
|
||||
"BaseChatMemory",
|
||||
"BaseMemory"
|
||||
],
|
||||
"baseClasses": ["MotorheadMemory", "BaseChatMemory", "BaseMemory"],
|
||||
"category": "Memory",
|
||||
"description": "Use Motorhead Memory to store chat conversations",
|
||||
"inputParams": [
|
||||
|
|
@ -673,9 +645,7 @@
|
|||
"type": "credential",
|
||||
"optional": true,
|
||||
"description": "Only needed when using hosted solution - https://getmetal.io",
|
||||
"credentialNames": [
|
||||
"motorheadMemoryApi"
|
||||
],
|
||||
"credentialNames": ["motorheadMemoryApi"],
|
||||
"id": "motorheadMemory_0-input-credential-credential"
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue