fix max_tokens parameter of Chat page not being passed to backend
This commit is contained in:
parent
8678f376e9
commit
1c7436c34b
@ -534,6 +534,7 @@ const ChatPanel: FC = observer(() => {
|
|||||||
messages: messages.slice(-commonStore.chatParams.historyN),
|
messages: messages.slice(-commonStore.chatParams.historyN),
|
||||||
stream: true,
|
stream: true,
|
||||||
model: commonStore.settings.apiChatModelName, // 'gpt-3.5-turbo'
|
model: commonStore.settings.apiChatModelName, // 'gpt-3.5-turbo'
|
||||||
|
max_tokens: commonStore.chatParams.maxResponseToken,
|
||||||
temperature: commonStore.chatParams.temperature,
|
temperature: commonStore.chatParams.temperature,
|
||||||
top_p: commonStore.chatParams.topP,
|
top_p: commonStore.chatParams.topP,
|
||||||
presence_penalty: commonStore.chatParams.presencePenalty,
|
presence_penalty: commonStore.chatParams.presencePenalty,
|
||||||
|
Loading…
Reference in New Issue
Block a user