Skip to content

Commit

Permalink
refactor(input-area): set full messages
Browse files Browse the repository at this point in the history
  • Loading branch information
kwaa committed Feb 6, 2025
1 parent 18fa8d3 commit 92844a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/input-area.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ export const InputArea = ({ character }: { character?: typeof charactersTable.$i
resetField('content')
setIsTyping(true)

const { text } = await generateText({
const { messages: msgNew } = await generateText({
...chatProvider,
messages: msg,
model: chatModel,
})

setMessages([...msg, { content: text, role: 'assistant' }])
setMessages(msgNew)
setIsTyping(false)
}

Expand Down

0 comments on commit 92844a9

Please sign in to comment.