Skip to content

Commit

Permalink
fix max_tokens parameter of Chat page not being passed to backend
Browse files Browse the repository at this point in the history
  • Loading branch information
josStorer committed Mar 11, 2024
1 parent 8678f37 commit 1c7436c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontend/src/pages/Chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1c7436c

Please sign in to comment.