Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
iTomasi committed Apr 26, 2023
1 parent 22a6fa2 commit 22636e7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/home/ChatForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,16 @@ export default function ChatForm ({
// @ts-ignore
e.target.reset()

const formatMessages = messages.map((value) => ({
role: value.role,
content: value.content
}))

const { error } = await FetchChatGPT(
openai,
{
messages: [
...messages,
...formatMessages,
userPayload
],
onChunk: (value) => {
Expand Down

1 comment on commit 22636e7

@vercel
Copy link

@vercel vercel bot commented on 22636e7 Apr 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

gpt-website – ./

gpt-website-itomasi.vercel.app
gpt-website-kappa.vercel.app
gpt-website-git-main-itomasi.vercel.app

Please sign in to comment.