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
@@ -137,8 +137,8 @@ class ChatAnthropic_ChatModels implements INode {
}
if (maxTokensToSample) obj.maxTokensToSample = parseInt(maxTokensToSample, 10)
if (topP) obj.topP = parseInt(topP, 10)
if (topK) obj.topK = parseInt(topK, 10)
if (topP) obj.topP = parseFloat(topP)
if (topK) obj.topK = parseFloat(topK)
const model = new ChatAnthropic(obj)
return model