mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 23:01:09 +03:00
change parseInt to parseFloat
This commit is contained in:
@@ -139,7 +139,7 @@ class ChatOpenAI_ChatModels implements INode {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (maxTokens) obj.maxTokens = parseInt(maxTokens, 10)
|
if (maxTokens) obj.maxTokens = parseInt(maxTokens, 10)
|
||||||
if (topP) obj.topP = parseInt(topP, 10)
|
if (topP) obj.topP = parseFloat(topP)
|
||||||
if (frequencyPenalty) obj.frequencyPenalty = parseInt(frequencyPenalty, 10)
|
if (frequencyPenalty) obj.frequencyPenalty = parseInt(frequencyPenalty, 10)
|
||||||
if (presencePenalty) obj.presencePenalty = parseInt(presencePenalty, 10)
|
if (presencePenalty) obj.presencePenalty = parseInt(presencePenalty, 10)
|
||||||
if (timeout) obj.timeout = parseInt(timeout, 10)
|
if (timeout) obj.timeout = parseInt(timeout, 10)
|
||||||
|
|||||||
@@ -139,7 +139,7 @@ class OpenAI_LLMs implements INode {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (maxTokens) obj.maxTokens = parseInt(maxTokens, 10)
|
if (maxTokens) obj.maxTokens = parseInt(maxTokens, 10)
|
||||||
if (topP) obj.topP = parseInt(topP, 10)
|
if (topP) obj.topP = parseFloat(topP)
|
||||||
if (frequencyPenalty) obj.frequencyPenalty = parseInt(frequencyPenalty, 10)
|
if (frequencyPenalty) obj.frequencyPenalty = parseInt(frequencyPenalty, 10)
|
||||||
if (presencePenalty) obj.presencePenalty = parseInt(presencePenalty, 10)
|
if (presencePenalty) obj.presencePenalty = parseInt(presencePenalty, 10)
|
||||||
if (timeout) obj.timeout = parseInt(timeout, 10)
|
if (timeout) obj.timeout = parseInt(timeout, 10)
|
||||||
|
|||||||
Reference in New Issue
Block a user