Skip to content

Commit 4cec11a

Browse files
committed
Handle openai error - console
1 parent b30ad57 commit 4cec11a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/utils/openai/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export const explain = async (
7272

7373
return response;
7474
} catch (e) {
75-
console.log('ERROR', e);
75+
console.log('ERROR', e.data.error);
7676
return {
7777
data: {
7878
choices: [

0 commit comments

Comments
 (0)