Skip to content

Commit

Permalink
🐛 Fix console log error message format in createChatCompletion.ts file
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannLai committed Mar 22, 2023
1 parent dc97183 commit 1d3d908
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/openaiAPI/createChatCompletion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export async function createChatCompletion(options: { [x: string]: any; messages
});

if (!response?.ok) {
console.log(chalk.red(`Error: request openai error, ${response.statusText}`))
console.log(chalk.red(`Error: request openai error, ${response.status} ,${response.statusText}`))
process.exit(1)
}

Expand Down

0 comments on commit 1d3d908

Please sign in to comment.