From 91eb72e5158d6ef611667bf0a13fbe42410fefde Mon Sep 17 00:00:00 2001 From: josc146 Date: Mon, 11 Mar 2024 18:52:05 +0800 Subject: [PATCH] fix the issue where penalty_decay and global_penalty are not being passed to the backend default config when running the model through client --- frontend/src/components/RunButton.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/RunButton.tsx b/frontend/src/components/RunButton.tsx index f80c8b6..948bf80 100644 --- a/frontend/src/components/RunButton.tsx +++ b/frontend/src/components/RunButton.tsx @@ -212,7 +212,9 @@ export const RunButton: FC<{ onClickRun?: MouseEventHandler, iconMode?: boolean temperature: modelConfig.apiParameters.temperature, top_p: modelConfig.apiParameters.topP, presence_penalty: modelConfig.apiParameters.presencePenalty, - frequency_penalty: modelConfig.apiParameters.frequencyPenalty + frequency_penalty: modelConfig.apiParameters.frequencyPenalty, + penalty_decay: modelConfig.apiParameters.penaltyDecay, + global_penalty: modelConfig.apiParameters.globalPenalty }); }