Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Administrator
/
chatgpt.ai-pro.org
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
3
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
cbee02a0
authored
2024-05-06 09:27:30 +0800
by
Leff Tubat
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Removed console.log and changed referrer url
1 parent
ca7417ef
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
index.js
index.js
View file @
cbee02a
...
...
@@ -194,7 +194,7 @@ async function runGPTTurbo(req, res) {
const
validate
=
await
validation
(
aiwp_app_id
,
req
,
res
);
if
(
!
validate
)
return
;
const
{
IS_FREE_USER
,
aiwp_logged_in
,
TRIED_USAGE
}
=
validate
;
console
.
log
({
validate
})
if
(
moderation
.
data
.
results
[
0
].
flagged
)
{
res
.
json
({
success
:
false
,
...
...
@@ -338,7 +338,7 @@ async function authenticate(params) {
"Content-Type"
:
"application/json"
},
body
:
JSON
.
stringify
(
params
),
referrer
:
"https://
api
.ai-pro.org"
referrer
:
"https://
chatgpt
.ai-pro.org"
});
return
await
data
.
json
();
}
...
...
@@ -350,7 +350,7 @@ async function getLimitedUsage(params) {
"Content-Type"
:
"application/json"
},
body
:
JSON
.
stringify
(
params
),
referrer
:
"https://
api
.ai-pro.org"
referrer
:
"https://
chatgpt
.ai-pro.org"
});
return
await
data
.
json
();
}
...
...
@@ -361,7 +361,7 @@ async function getUsage(params) {
"Content-Type"
:
"application/json"
},
body
:
JSON
.
stringify
(
params
),
referrer
:
"https://
api
.ai-pro.org"
referrer
:
"https://
chatgpt
.ai-pro.org"
});
return
await
data
.
json
();
}
...
...
@@ -372,7 +372,7 @@ async function setUsage(params) {
"Content-Type"
:
"application/json"
},
body
:
JSON
.
stringify
(
params
),
referrer
:
"https://
api
.ai-pro.org"
referrer
:
"https://
chatgpt
.ai-pro.org"
});
fetch
(
`
${
hostapi
}
/e/set-chat-usage`
,
{
method
:
"POST"
,
...
...
@@ -380,7 +380,7 @@ async function setUsage(params) {
"Content-Type"
:
"application/json"
},
body
:
JSON
.
stringify
(
params
),
referrer
:
"https://
api
.ai-pro.org"
referrer
:
"https://
chatgpt
.ai-pro.org"
});
}
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment