fix: temperature should convert to float

This commit is contained in:
Jeffrey
2023-06-29 14:21:44 +08:00
committed by GitHub
parent dc2f35bfad
commit 7a8db1dff3
@@ -132,7 +132,7 @@ class ChatOpenAI_ChatModels implements INode {
const basePath = nodeData.inputs?.basepath as string
const obj: Partial<OpenAIChatInput> & { openAIApiKey?: string } = {
temperature: parseInt(temperature, 10),
temperature: parseFloat(temperature),
modelName,
openAIApiKey,
streaming: streaming ?? true