Skip to content

Commit

Permalink
clear user messages when start a new chat
Browse files Browse the repository at this point in the history
  • Loading branch information
530051970 committed Jan 7, 2025
1 parent 9372ecf commit 70163d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/portal/src/pages/chatbot/ChatBot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ const ChatBot: React.FC<ChatBotProps> = (props: ChatBotProps) => {
setTemperature(defaultConfig.temperature)
setTopKRetrievals(defaultConfig.topKRetrievals)
setScore(defaultConfig.score)
setUserMessage('')
setAdditionalConfig('')
// setModelOption(optionList?.[0]?.value ?? '')
setSessionId(uuidv4());
Expand Down

0 comments on commit 70163d3

Please sign in to comment.