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
  • Loading branch information
Anonymous-cat1 authored Jan 5, 2024
1 parent eb5b023 commit cd020ab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,14 @@
}
checkApiUrl() {
// Send a simple GET request to the api_url
const fakerefer = "https://" + Math.round(Math.random() * 40000000) + ".com"
// this is to bypass some apis from blocking scratch ides

return Scratch.fetch(api_url, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Origin': ''+ fakerefer +'',
},
body: JSON.stringify({
model: "gpt-3.5-turbo",
Expand Down

0 comments on commit cd020ab

Please sign in to comment.