fix max_tokens parameter of Chat page not being passed to backend

This commit is contained in:
josc146 2024-03-11 18:48:00 +08:00
parent 8678f376e9
commit 1c7436c34b

View File

@ -534,6 +534,7 @@ const ChatPanel: FC = observer(() => {
messages: messages.slice(-commonStore.chatParams.historyN),
stream: true,
model: commonStore.settings.apiChatModelName, // 'gpt-3.5-turbo'
max_tokens: commonStore.chatParams.maxResponseToken,
temperature: commonStore.chatParams.temperature,
top_p: commonStore.chatParams.topP,
presence_penalty: commonStore.chatParams.presencePenalty,