modify parse for topP and topK

This commit is contained in:
chungyau97
2023-07-26 01:13:16 +08:00
parent b454083eaf
commit 2ad873c34f
22 changed files with 25 additions and 25 deletions
@@ -181,7 +181,7 @@ class AzureOpenAI_LLMs implements INode {
}
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 (presencePenalty) obj.presencePenalty = parseInt(presencePenalty, 10)
if (timeout) obj.timeout = parseInt(timeout, 10)