Skip to content

Commit

Permalink
Update useSubmit.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
yfw918 authored Nov 9, 2023
1 parent c9b738f commit 1d148c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useSubmit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ const useSubmit = () => {
if (typeof curr === 'string') {
partial += curr;
} else {
const content = curr.choices[0].delta.content;
const content = curr.choices[0].message.content;
if (content) output += content;
}
return output;
Expand Down

0 comments on commit 1d148c1

Please sign in to comment.