- update marketplaces

- add version to nodes and credentials
- hover over node actions
This commit is contained in:
Henry
2023-07-28 15:56:40 +01:00
parent 976e74f13f
commit 05dd23b01d
181 changed files with 884 additions and 148 deletions
@@ -5,6 +5,7 @@ import { AzureOpenAIInput, OpenAI, OpenAIInput } from 'langchain/llms/openai'
class AzureOpenAI_LLMs implements INode {
label: string
name: string
version: number
type: string
icon: string
category: string
@@ -16,6 +17,7 @@ class AzureOpenAI_LLMs implements INode {
constructor() {
this.label = 'Azure OpenAI'
this.name = 'azureOpenAI'
this.version = 1.0
this.type = 'AzureOpenAI'
this.icon = 'Azure.svg'
this.category = 'LLMs'
@@ -89,6 +91,7 @@ class AzureOpenAI_LLMs implements INode {
label: 'Temperature',
name: 'temperature',
type: 'number',
step: 0.1,
default: 0.9,
optional: true
},
@@ -96,6 +99,7 @@ class AzureOpenAI_LLMs implements INode {
label: 'Max Tokens',
name: 'maxTokens',
type: 'number',
step: 1,
optional: true,
additionalParams: true
},
@@ -103,6 +107,7 @@ class AzureOpenAI_LLMs implements INode {
label: 'Top Probability',
name: 'topP',
type: 'number',
step: 0.1,
optional: true,
additionalParams: true
},
@@ -110,6 +115,7 @@ class AzureOpenAI_LLMs implements INode {
label: 'Best Of',
name: 'bestOf',
type: 'number',
step: 1,
optional: true,
additionalParams: true
},
@@ -117,6 +123,7 @@ class AzureOpenAI_LLMs implements INode {
label: 'Frequency Penalty',
name: 'frequencyPenalty',
type: 'number',
step: 0.1,
optional: true,
additionalParams: true
},
@@ -124,6 +131,7 @@ class AzureOpenAI_LLMs implements INode {
label: 'Presence Penalty',
name: 'presencePenalty',
type: 'number',
step: 0.1,
optional: true,
additionalParams: true
},
@@ -131,6 +139,7 @@ class AzureOpenAI_LLMs implements INode {
label: 'Timeout',
name: 'timeout',
type: 'number',
step: 1,
optional: true,
additionalParams: true
}
@@ -166,8 +175,8 @@ class AzureOpenAI_LLMs implements INode {
if (maxTokens) obj.maxTokens = parseInt(maxTokens, 10)
if (topP) obj.topP = parseFloat(topP)
if (frequencyPenalty) obj.frequencyPenalty = parseInt(frequencyPenalty, 10)
if (presencePenalty) obj.presencePenalty = parseInt(presencePenalty, 10)
if (frequencyPenalty) obj.frequencyPenalty = parseFloat(frequencyPenalty)
if (presencePenalty) obj.presencePenalty = parseFloat(presencePenalty)
if (timeout) obj.timeout = parseInt(timeout, 10)
if (bestOf) obj.bestOf = parseInt(bestOf, 10)
@@ -5,6 +5,7 @@ import { Cohere, CohereInput } from './core'
class Cohere_LLMs implements INode {
label: string
name: string
version: number
type: string
icon: string
category: string
@@ -16,6 +17,7 @@ class Cohere_LLMs implements INode {
constructor() {
this.label = 'Cohere'
this.name = 'cohere'
this.version = 1.0
this.type = 'Cohere'
this.icon = 'cohere.png'
this.category = 'LLMs'
@@ -65,6 +67,7 @@ class Cohere_LLMs implements INode {
label: 'Temperature',
name: 'temperature',
type: 'number',
step: 0.1,
default: 0.7,
optional: true
},
@@ -72,6 +75,7 @@ class Cohere_LLMs implements INode {
label: 'Max Tokens',
name: 'maxTokens',
type: 'number',
step: 1,
optional: true
}
]
@@ -5,6 +5,7 @@ import { HFInput, HuggingFaceInference } from './core'
class HuggingFaceInference_LLMs implements INode {
label: string
name: string
version: number
type: string
icon: string
category: string
@@ -16,6 +17,7 @@ class HuggingFaceInference_LLMs implements INode {
constructor() {
this.label = 'HuggingFace Inference'
this.name = 'huggingFaceInference_LLMs'
this.version = 1.0
this.type = 'HuggingFaceInference'
this.icon = 'huggingface.png'
this.category = 'LLMs'
@@ -48,6 +50,7 @@ class HuggingFaceInference_LLMs implements INode {
label: 'Temperature',
name: 'temperature',
type: 'number',
step: 0.1,
description: 'Temperature parameter may not apply to certain model. Please check available model parameters',
optional: true,
additionalParams: true
@@ -56,6 +59,7 @@ class HuggingFaceInference_LLMs implements INode {
label: 'Max Tokens',
name: 'maxTokens',
type: 'number',
step: 1,
description: 'Max Tokens parameter may not apply to certain model. Please check available model parameters',
optional: true,
additionalParams: true
@@ -64,6 +68,7 @@ class HuggingFaceInference_LLMs implements INode {
label: 'Top Probability',
name: 'topP',
type: 'number',
step: 0.1,
description: 'Top Probability parameter may not apply to certain model. Please check available model parameters',
optional: true,
additionalParams: true
@@ -72,6 +77,7 @@ class HuggingFaceInference_LLMs implements INode {
label: 'Top K',
name: 'hfTopK',
type: 'number',
step: 0.1,
description: 'Top K parameter may not apply to certain model. Please check available model parameters',
optional: true,
additionalParams: true
@@ -80,6 +86,7 @@ class HuggingFaceInference_LLMs implements INode {
label: 'Frequency Penalty',
name: 'frequencyPenalty',
type: 'number',
step: 0.1,
description: 'Frequency Penalty parameter may not apply to certain model. Please check available model parameters',
optional: true,
additionalParams: true
@@ -108,7 +115,7 @@ class HuggingFaceInference_LLMs implements INode {
if (maxTokens) obj.maxTokens = parseInt(maxTokens, 10)
if (topP) obj.topP = parseFloat(topP)
if (hfTopK) obj.topK = parseFloat(hfTopK)
if (frequencyPenalty) obj.frequencyPenalty = parseInt(frequencyPenalty, 10)
if (frequencyPenalty) obj.frequencyPenalty = parseFloat(frequencyPenalty)
if (endpoint) obj.endpoint = endpoint
const huggingFace = new HuggingFaceInference(obj)
@@ -5,6 +5,7 @@ import { OpenAI, OpenAIInput } from 'langchain/llms/openai'
class OpenAI_LLMs implements INode {
label: string
name: string
version: number
type: string
icon: string
category: string
@@ -16,6 +17,7 @@ class OpenAI_LLMs implements INode {
constructor() {
this.label = 'OpenAI'
this.name = 'openAI'
this.version = 1.0
this.type = 'OpenAI'
this.icon = 'openai.png'
this.category = 'LLMs'
@@ -57,6 +59,7 @@ class OpenAI_LLMs implements INode {
label: 'Temperature',
name: 'temperature',
type: 'number',
step: 0.1,
default: 0.7,
optional: true
},
@@ -64,6 +67,7 @@ class OpenAI_LLMs implements INode {
label: 'Max Tokens',
name: 'maxTokens',
type: 'number',
step: 1,
optional: true,
additionalParams: true
},
@@ -71,6 +75,7 @@ class OpenAI_LLMs implements INode {
label: 'Top Probability',
name: 'topP',
type: 'number',
step: 0.1,
optional: true,
additionalParams: true
},
@@ -78,6 +83,7 @@ class OpenAI_LLMs implements INode {
label: 'Best Of',
name: 'bestOf',
type: 'number',
step: 1,
optional: true,
additionalParams: true
},
@@ -85,6 +91,7 @@ class OpenAI_LLMs implements INode {
label: 'Frequency Penalty',
name: 'frequencyPenalty',
type: 'number',
step: 0.1,
optional: true,
additionalParams: true
},
@@ -92,6 +99,7 @@ class OpenAI_LLMs implements INode {
label: 'Presence Penalty',
name: 'presencePenalty',
type: 'number',
step: 0.1,
optional: true,
additionalParams: true
},
@@ -99,6 +107,7 @@ class OpenAI_LLMs implements INode {
label: 'Batch Size',
name: 'batchSize',
type: 'number',
step: 1,
optional: true,
additionalParams: true
},
@@ -106,6 +115,7 @@ class OpenAI_LLMs implements INode {
label: 'Timeout',
name: 'timeout',
type: 'number',
step: 1,
optional: true,
additionalParams: true
},
@@ -144,8 +154,8 @@ class OpenAI_LLMs implements INode {
if (maxTokens) obj.maxTokens = parseInt(maxTokens, 10)
if (topP) obj.topP = parseFloat(topP)
if (frequencyPenalty) obj.frequencyPenalty = parseInt(frequencyPenalty, 10)
if (presencePenalty) obj.presencePenalty = parseInt(presencePenalty, 10)
if (frequencyPenalty) obj.frequencyPenalty = parseFloat(frequencyPenalty)
if (presencePenalty) obj.presencePenalty = parseFloat(presencePenalty)
if (timeout) obj.timeout = parseInt(timeout, 10)
if (batchSize) obj.batchSize = parseInt(batchSize, 10)
if (bestOf) obj.bestOf = parseInt(bestOf, 10)
@@ -5,6 +5,7 @@ import { Replicate, ReplicateInput } from 'langchain/llms/replicate'
class Replicate_LLMs implements INode {
label: string
name: string
version: number
type: string
icon: string
category: string
@@ -16,6 +17,7 @@ class Replicate_LLMs implements INode {
constructor() {
this.label = 'Replicate'
this.name = 'replicate'
this.version = 1.0
this.type = 'Replicate'
this.icon = 'replicate.svg'
this.category = 'LLMs'
@@ -39,6 +41,7 @@ class Replicate_LLMs implements INode {
label: 'Temperature',
name: 'temperature',
type: 'number',
step: 0.1,
description:
'Adjusts randomness of outputs, greater than 1 is random and 0 is deterministic, 0.75 is a good starting value.',
default: 0.7,
@@ -48,6 +51,7 @@ class Replicate_LLMs implements INode {
label: 'Max Tokens',
name: 'maxTokens',
type: 'number',
step: 1,
description: 'Maximum number of tokens to generate. A word is generally 2-3 tokens',
optional: true,
additionalParams: true
@@ -56,6 +60,7 @@ class Replicate_LLMs implements INode {
label: 'Top Probability',
name: 'topP',
type: 'number',
step: 0.1,
description:
'When decoding text, samples from the top p percentage of most likely tokens; lower to ignore less likely tokens',
optional: true,
@@ -65,6 +70,7 @@ class Replicate_LLMs implements INode {
label: 'Repetition Penalty',
name: 'repetitionPenalty',
type: 'number',
step: 0.1,
description:
'Penalty for repeated words in generated text; 1 is no penalty, values greater than 1 discourage repetition, less than 1 encourage it. (minimum: 0.01; maximum: 5)',
optional: true,