@suzakuteam/scraper-node
Version:
Sebuah Module Scraper yang dibuat oleh Sxyz dan SuzakuTeam untuk memudahkan penggunaan scraper di project ESM maupun CJS.
18 lines (15 loc) • 417 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 };