Skip to content

Commit

Permalink
Merge main into sweep/docstrings-addition
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] authored Dec 13, 2023
2 parents cc6a713 + 9cd2e66 commit 4495963
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pages/api/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ const handler = async (req: Request): Promise<NextResponse> => {
console.log('Final OpenAIError resp: ', resp)
return resp
} else {
console.error('Unexpected Error', error)
const resp = NextResponse.json({ name: 'Error' }, { status: 500 })
console.log('Final Error resp: ', resp)
return resp
Expand Down

0 comments on commit 4495963

Please sign in to comment.