tester-scraper
Version:
Sebuah Module Scraper yang dibuat oleh Sxyz dan SuzakuTeam untuk memudahkan penggunaan scraper di project ESM maupun CJS.
15 lines (13 loc) • 388 B
JavaScript
import axios from "axios";
import { Success, ErrorResponse } from "../../esm/lib/function.js";
const VelynAPI = {
velynAI: async chat => {
try {
const { data } = await axios.get(`https://velyn.biz.id/api/ai/velyn-1.0-1b?prompt=${chat}`)
return new Success(data)
} catch (errorResponses) {
return new ErrorResponse(errorResponses)
}
}
}
export { VelynAPI };