Skip to content

Commit

Permalink
changed: api endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Rstacx committed Jun 2, 2024
1 parent c00cf4b commit 01377c3
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion build/cjs/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
Object.defineProperty(exports, "__esModule", { value: true });
exports.RsnChat = void 0;
const axios_1 = __importDefault(require("axios"));
const apiUrl = "https://api.rsnai.org/api/v1/user";
const apiUrl = "https://api.rnilaweera.lk/api/v1/user";
class RsnChat {
/**
* **RsnChat**
Expand Down
2 changes: 1 addition & 1 deletion build/esm/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
});
};
import axios from "axios";
const apiUrl = "https://api.rsnai.org/api/v1/user";
const apiUrl = "https://api.rnilaweera.lk/api/v1/user";
class RsnChat {
/**
* **RsnChat**
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rsnchat",
"version": "4.0.0",
"version": "4.0.1",
"description": "A package for interacting with GPT4-based chat services, OpenChat, Bard, Gemini, Bing, LlaMa, CodeLlama, Mixtral, Claude, Naomi, Prodia, Kandinsky, Absolutebeauty, Sdxl, Dalle and AI Icon",
"type": "module",
"types": "./types/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import axios from "axios";

const apiUrl = "https://api.rsnai.org/api/v1/user"
const apiUrl = "https://api.rnilaweera.lk/api/v1/user"

interface Result {
success: string;
Expand Down
6 changes: 3 additions & 3 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ declare class RsnChat {
*/
cartoon(prompt: string): Promise<"No prompt provided." | Image>;
/**
* Generate Image with photograpy
* Generate Image with Photograpy
* @param {string} prompt DallE prompt
* @example
* ```js
Expand All @@ -393,8 +393,8 @@ declare class RsnChat {
*/
photograpy(prompt: string): Promise<"No prompt provided." | Image>;
/**
* Generate Image with disney
* @param {string} prompt disney prompt
* Generate Image with Disney
* @param {string} prompt Disney prompt
* @example
* ```js
* const { RsnChat } = require("rsnchat");
Expand Down

0 comments on commit 01377c3

Please sign in to comment.