Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lvwzhen committed Apr 21, 2023
1 parent fbba3f2 commit d1770f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/SearchDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ export function SearchDialog() {
}

const completionResponse: CreateChatCompletionResponse = JSON.parse(e.data)
const text = completionResponse.choices[0].delta?.content || "";
console.log(completionResponse.choices[0].message);
const text = completionResponse.choices[0].message || "";

setAnswer((answer) => {
const currentAnswer = answer ?? ''
Expand Down

0 comments on commit d1770f3

Please sign in to comment.