Skip to content
This repository has been archived by the owner on Jul 25, 2024. It is now read-only.

Commit

Permalink
Update extension.js
Browse files Browse the repository at this point in the history
revert
  • Loading branch information
Anonymous-cat1 authored Nov 26, 2023
1 parent 7d46859 commit aec2614
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@
if (!response.ok) {
throw new Error(`Network response was not ok: ${response.status} ${response.statusText}`);
}
return (`Error: ${response.status} ${response.statusText}`);
return response.json()
})
.then(data => {
const botResponse = data.choices[0].message.content;
Expand Down Expand Up @@ -366,7 +366,7 @@
if (!response.ok) {
throw new Error(`Network response was not ok: ${response.status} ${response.statusText}`);
}
return (`Error: ${response.status} ${response.statusText}`);
return response.json()
})
.then(data => {
const botResponse = data.choices[0].message.content;
Expand Down

0 comments on commit aec2614

Please sign in to comment.