You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: packages/components/nodes/chatmodels/ChatIBMWatsonx/ChatIBMWatsonx.ts
+64-1
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ class ChatIBMWatsonx_ChatModels implements INode {
27
27
constructor(){
28
28
this.label='ChatIBMWatsonx'
29
29
this.name='chatIBMWatsonx'
30
-
this.version=1.0
30
+
this.version=2.0
31
31
this.type='ChatIBMWatsonx'
32
32
this.icon='ibm.png'
33
33
this.category='Chat Models'
@@ -75,6 +75,59 @@ class ChatIBMWatsonx_ChatModels implements INode {
75
75
step: 1,
76
76
optional: true,
77
77
additionalParams: true
78
+
},
79
+
{
80
+
label: 'Frequency Penalty',
81
+
name: 'frequencyPenalty',
82
+
type: 'number',
83
+
step: 1,
84
+
optional: true,
85
+
additionalParams: true,
86
+
description:
87
+
"Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim."
88
+
},
89
+
{
90
+
label: 'Log Probs',
91
+
name: 'logprobs',
92
+
type: 'boolean',
93
+
default: false,
94
+
optional: true,
95
+
additionalParams: true,
96
+
description:
97
+
'Whether to return log probabilities of the output tokens or not. If true, returns the log probabilities of each output token returned in the content of message.'
98
+
},
99
+
{
100
+
label: 'N',
101
+
name: 'n',
102
+
type: 'number',
103
+
step: 1,
104
+
default: 1,
105
+
optional: true,
106
+
additionalParams: true,
107
+
description:
108
+
'How many chat completion choices to generate for each input message. Note that you will be charged based on the number of generated tokens across all of the choices. Keep n as 1 to minimize costs.'
109
+
},
110
+
{
111
+
label: 'Presence Penalty',
112
+
name: 'presencePenalty',
113
+
type: 'number',
114
+
step: 1,
115
+
default: 1,
116
+
optional: true,
117
+
additionalParams: true,
118
+
description:
119
+
"Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics."
120
+
},
121
+
{
122
+
label: 'Top P',
123
+
name: 'topP',
124
+
type: 'number',
125
+
step: 0.1,
126
+
default: 0.1,
127
+
optional: true,
128
+
additionalParams: true,
129
+
description:
130
+
'An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.'
78
131
}
79
132
]
80
133
}
@@ -84,6 +137,11 @@ class ChatIBMWatsonx_ChatModels implements INode {
0 commit comments