diff --git a/lib/user-interface/react/src/components/chatbot/Chat.tsx b/lib/user-interface/react/src/components/chatbot/Chat.tsx index 3eb52d37..a906eb60 100644 --- a/lib/user-interface/react/src/components/chatbot/Chat.tsx +++ b/lib/user-interface/react/src/components/chatbot/Chat.tsx @@ -287,12 +287,6 @@ export default function Chat({ sessionId }) { }, streaming, maxTokens: modelConfig?.max_tokens, - n: modelConfig?.n, - topP: modelConfig?.top_p, - frequencyPenalty: modelConfig?.frequency_penalty, - presencePenalty: modelConfig?.presence_penalty, - temperature: modelConfig?.temperature, - stop: modelConfig?.stop, modelKwargs: modelConfig?.modelKwargs, }); }; diff --git a/lib/user-interface/react/src/components/chatbot/ModelKwargs.tsx b/lib/user-interface/react/src/components/chatbot/ModelKwargs.tsx index ef001924..cb086f41 100644 --- a/lib/user-interface/react/src/components/chatbot/ModelKwargs.tsx +++ b/lib/user-interface/react/src/components/chatbot/ModelKwargs.tsx @@ -44,19 +44,19 @@ export default function ModelKwargsEditor({ setModelConfig, visible, setVisible useEffect(() => { const modelConfig: ModelConfig = { max_tokens: maxNewTokens, - n: n, - top_p: topP, - frequency_penalty: frequencyPenalty, - presence_penalty: presencePenalty, - temperature: temperature, - stop: stopSequences.map((elem) => { - try { - return unraw(elem); - } catch (error) { - return elem; - } - }), modelKwargs: { + n: n, + top_p: topP, + frequency_penalty: frequencyPenalty, + presence_penalty: presencePenalty, + temperature: temperature, + stop: stopSequences.map((elem) => { + try { + return unraw(elem); + } catch (error) { + return elem; + } + }), seed, }, }; @@ -96,7 +96,7 @@ export default function ModelKwargsEditor({ setModelConfig, visible, setVisible