mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 19:00:59 +03:00
fix: temperature convert to float
This commit is contained in:
@@ -89,7 +89,7 @@ class ChatHuggingFace_ChatModels implements INode {
|
||||
apiKey
|
||||
}
|
||||
|
||||
if (temperature) obj.temperature = parseInt(temperature, 10)
|
||||
if (temperature) obj.temperature = parseFloat(temperature)
|
||||
if (maxTokens) obj.maxTokens = parseInt(maxTokens, 10)
|
||||
if (topP) obj.topP = parseInt(topP, 10)
|
||||
if (hfTopK) obj.topK = parseInt(hfTopK, 10)
|
||||
|
||||
Reference in New Issue
Block a user