This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const axios = require("axios"); | |
const FormData = require("form-data"); | |
async function editImage(buffers, prompt) { | |
const buffer = buffers[0]; | |
const form = new FormData(); | |
form.append("image", buffer, "image.jpg"); | |
form.append("prompt", prompt); | |
const response = await axios.post("https://api.xyro.site/ai/notegpt/edit", form, { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const axios = require("axios"); | |
const FormData = require("form-data"); | |
async function convert(buffers, prompt) { | |
const buffer = buffers[0]; | |
const form = new FormData(); | |
form.append("image", buffer, "image.jpg"); | |
form.append("prompt", prompt); | |
const response = await axios.post("https://api.xyro.site/ai/notegpt/edit", form, { |