Moved APIkey helper text, and fixed linter complaints
This commit is contained in:
parent
e5167f3e20
commit
19824bf339
|
|
@ -4,12 +4,15 @@ class GoogleMakerSuite implements INodeCredential {
|
||||||
label: string
|
label: string
|
||||||
name: string
|
name: string
|
||||||
version: number
|
version: number
|
||||||
|
description: string
|
||||||
inputs: INodeParams[]
|
inputs: INodeParams[]
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
this.label = 'Google MakerSuite'
|
this.label = 'Google MakerSuite'
|
||||||
this.name = 'googleMakerSuite'
|
this.name = 'googleMakerSuite'
|
||||||
this.version = 1.0
|
this.version = 1.0
|
||||||
|
this.description =
|
||||||
|
'Use the <a target="_blank" href="https://makersuite.google.com/app/apikey">Google MakerSuite API credential site</a> to get this key.'
|
||||||
this.inputs = [
|
this.inputs = [
|
||||||
{
|
{
|
||||||
label: 'MakerSuite API Key',
|
label: 'MakerSuite API Key',
|
||||||
|
|
|
||||||
|
|
@ -27,12 +27,9 @@ class GooglePaLM_LLMs implements INode {
|
||||||
label: 'Connect Credential',
|
label: 'Connect Credential',
|
||||||
name: 'credential',
|
name: 'credential',
|
||||||
type: 'credential',
|
type: 'credential',
|
||||||
credentialNames: ['googleMakerSuite'],
|
credentialNames: ['googleMakerSuite']
|
||||||
description:
|
|
||||||
'Google MakerSuite API credential. Get this from https://makersuite.google.com/app/apikey'
|
|
||||||
|
|
||||||
}
|
}
|
||||||
this.inputs = [
|
this.inputs = [
|
||||||
{
|
{
|
||||||
label: 'Model Name',
|
label: 'Model Name',
|
||||||
name: 'modelName',
|
name: 'modelName',
|
||||||
|
|
@ -52,12 +49,13 @@ class GooglePaLM_LLMs implements INode {
|
||||||
type: 'number',
|
type: 'number',
|
||||||
step: 0.1,
|
step: 0.1,
|
||||||
default: 0.7,
|
default: 0.7,
|
||||||
optional: true,
|
optional: true,
|
||||||
description: "Controls the randomness of the output.\n"+
|
description:
|
||||||
"Values can range from [0.0,1.0], inclusive. A value closer to 1.0 "+
|
'Controls the randomness of the output.\n' +
|
||||||
"will produce responses that are more varied and creative, while"+
|
'Values can range from [0.0,1.0], inclusive. A value closer to 1.0 ' +
|
||||||
"a value closer to 0.0 will typically result in more straightforward"+
|
'will produce responses that are more varied and creative, while ' +
|
||||||
"responses from the model."
|
'a value closer to 0.0 will typically result in more straightforward ' +
|
||||||
|
'responses from the model.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Max Output Tokens',
|
label: 'Max Output Tokens',
|
||||||
|
|
@ -66,7 +64,7 @@ class GooglePaLM_LLMs implements INode {
|
||||||
step: 1,
|
step: 1,
|
||||||
optional: true,
|
optional: true,
|
||||||
additionalParams: true,
|
additionalParams: true,
|
||||||
description: "Maximum number of tokens to generate in the completion."
|
description: 'Maximum number of tokens to generate in the completion.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Top Probability',
|
label: 'Top Probability',
|
||||||
|
|
@ -74,13 +72,14 @@ class GooglePaLM_LLMs implements INode {
|
||||||
type: 'number',
|
type: 'number',
|
||||||
step: 0.1,
|
step: 0.1,
|
||||||
optional: true,
|
optional: true,
|
||||||
additionalParams: true,
|
additionalParams: true,
|
||||||
description: "Top-p changes how the model selects tokens for output.\n"+
|
description:
|
||||||
"Tokens are selected from most probable to least until "+
|
'Top-p changes how the model selects tokens for output.\n' +
|
||||||
"the sum of their probabilities equals the top-p value.\n"+
|
'Tokens are selected from most probable to least until ' +
|
||||||
"For example, if tokens A, B, and C have a probability of .3, .2, and .1 "+
|
'the sum of their probabilities equals the top-p value.\n' +
|
||||||
"and the top-p value is .5, then the model will select either A or B "+
|
'For example, if tokens A, B, and C have a probability of .3, .2, and .1 ' +
|
||||||
"as the next token (using temperature)."
|
'and the top-p value is .5, then the model will select either A or B ' +
|
||||||
|
'as the next token (using temperature).'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Top-k',
|
label: 'Top-k',
|
||||||
|
|
@ -89,11 +88,12 @@ class GooglePaLM_LLMs implements INode {
|
||||||
step: 1,
|
step: 1,
|
||||||
optional: true,
|
optional: true,
|
||||||
additionalParams: true,
|
additionalParams: true,
|
||||||
description: "Top-k changes how the model selects tokens for output.\n"+
|
description:
|
||||||
"A top-k of 1 means the selected token is the most probable among "+
|
'Top-k changes how the model selects tokens for output.\n' +
|
||||||
"all tokens in the model’s vocabulary (also called greedy decoding), "+
|
'A top-k of 1 means the selected token is the most probable among ' +
|
||||||
"while a top-k of 3 means that the next token is selected from "+
|
'all tokens in the model vocabulary (also called greedy decoding), ' +
|
||||||
"among the 3 most probable tokens (using temperature)."
|
'while a top-k of 3 means that the next token is selected from ' +
|
||||||
|
'among the 3 most probable tokens (using temperature).'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Stop Sequences',
|
label: 'Stop Sequences',
|
||||||
|
|
@ -102,11 +102,11 @@ class GooglePaLM_LLMs implements INode {
|
||||||
optional: true,
|
optional: true,
|
||||||
additionalParams: true
|
additionalParams: true
|
||||||
//default: { list:[] },
|
//default: { list:[] },
|
||||||
//description:
|
//description:
|
||||||
// "The 'list' field should contain a list of character strings (up to 5) that will stop output generation.\n"+
|
// 'The "list" field should contain a list of character strings (up to 5) that will stop output generation.\n' +
|
||||||
// " * If specified, the API will stop at the first appearance of a stop sequence.\n"+
|
// ' * If specified, the API will stop at the first appearance of a stop sequence.\n' +
|
||||||
// "Note: The stop sequence will not be included as part of the response."
|
// 'Note: The stop sequence will not be included as part of the response.'
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
{
|
{
|
||||||
label: 'Safety Settings',
|
label: 'Safety Settings',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue