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
@@ -80,7 +80,7 @@ class ChatLocalAI_ChatModels implements INode {
}
if (maxTokens) obj.maxTokens = parseInt(maxTokens, 10)
if (topP) obj.topP = parseInt(topP, 10)
if (topP) obj.topP = parseFloat(topP)
if (timeout) obj.timeout = parseInt(timeout, 10)
const model = new OpenAIChat(obj, { basePath })