3.4.8 • Published 5 months ago

@mgalacyber/universeapi v3.4.8

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
5 months ago

UNIVERSE API

Full API Implementation inside NodeJS Module

Installation

npm:

$ npm install @mgalacyber/universeapi

yarn:

$ yarn add @mgalacyber/universeapi

pnpm:

$ pnpm add @mgalacyber/universeapi

Simple to Use

CommonJS (CJS) syntax

const { UniverseClient } = require("@mgalacyber/universeapi");
const uAPI = new UniverseClient("API-TOKEN");

// Example of an API call
uAPI.V1.AI.OpenAI.GPT.Text({
    model: "gpt4", // Type of model used
    version: 1, // Model version of rest api
    prompt: "What is Galaxy Universe?" // Enter Your prompt here

}).then((result) => console.log(result));

ECMAScript Modules (ESM) syntax

import { UniverseClient } from "@mgalacyber/universeapi";
const uAPI = new UniverseClient("API-TOKEN");

// Example of an API call
uAPI.V1.AI.OpenAI.GPT.Text({
    model: "gpt4", // Type of model used
    version: 1, // Model version of rest api
    prompt: "What is Galaxy Universe?" // Enter Your prompt here

}).then((result) => console.log(result));

Bugs, Glitches and Issues

If you encounter any problems feel free to open an issue in our