fix: temperature convert to float

This commit is contained in:
Jeffrey-Wang
2023-06-29 21:23:21 +08:00
parent 7a8db1dff3
commit 184a783847
8 changed files with 8 additions and 8 deletions
@@ -132,7 +132,7 @@ class OpenAI_LLMs implements INode {
const basePath = nodeData.inputs?.basepath as string
const obj: Partial<OpenAIInput> & { openAIApiKey?: string } = {
temperature: parseInt(temperature, 10),
temperature: parseFloat(temperature),
modelName,
openAIApiKey,
streaming: streaming ?? true