Skip to content
This repository has been archived by the owner on May 10, 2023. It is now read-only.

Commit

Permalink
fix filter
Browse files Browse the repository at this point in the history
  • Loading branch information
MrlolDev committed Apr 22, 2023
1 parent 7676a1b commit 3c78aa1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/modules/stablehorde.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +126,15 @@ export async function png2webp(pngUrl) {

async function filter(prompt, model?) {
var req = await axios.post(
"https://api.turingai.tech/filter",
"https://api.turingai.tech/imgs/filter",
{
prompt: prompt,
model: model,
},
{
headers: {
Authorization: `Bearer ${process.env.TURING_API}`,
Authorization: `Bearer ${process.env.TURING_KEY}`,
"x-captcha-token": process.env.CAPTCHA_TOKEN,
},
}
);
Expand Down

0 comments on commit 3c78aa1

Please sign in to comment.