Skip to content

Commit

Permalink
Merge pull request #238 from eltociear/patch-2
Browse files Browse the repository at this point in the history
Update Chat.tsx
  • Loading branch information
samlhuillier committed May 6, 2024
2 parents 6ba6d48 + 72a23cd commit eef2beb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Chat/Chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -367,12 +367,12 @@ const ChatWithLLM: React.FC<ChatWithLLMProps> = ({

useEffect(() => {
const handleChunk = async (
recievedChatID: string,
receivedChatID: string,
chunk: ChatCompletionChunk
) => {
const newContent = chunk.choices[0].delta.content ?? "";
if (newContent) {
appendNewContentToMessageHistory(recievedChatID, newContent, "success");
appendNewContentToMessageHistory(receivedChatID, newContent, "success");
}
};

Expand Down

0 comments on commit eef2beb

Please sign in to comment.