-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from MGalaCyber/master
Release v3.1.0
- Loading branch information
Showing
80 changed files
with
1,515 additions
and
1,036 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
// Check Update | ||
const _checkUpdates = require("./src/checkUpdates"); | ||
_checkUpdates(); | ||
const packageNotifier = require("@mgalacyber/package-notifier"); | ||
const packageFile = require("./package.json"); | ||
packageNotifier(packageFile); | ||
|
||
// Import api | ||
module.exports = require("./src/main"); |
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
module.exports = function(Api) { | ||
return { | ||
Model1: async (prompt) => (await Api()).Get("v1/ai/blackbox/model1", { prompt }), | ||
Model2v4: async (prompt) => (await Api()).Get("v1/ai/blackbox/model2-v4", { prompt }), | ||
Text: async function(options) { | ||
const { version, prompt } = options; | ||
|
||
if (version === 1) return (await Api()).Get("v1/ai/blackbox/model1", { prompt }); | ||
if (version === 2) return (await Api()).Get("v1/ai/blackbox/model2", { prompt }); | ||
} | ||
} | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,32 @@ | ||
module.exports = function(Api) { | ||
return { | ||
Gemini: { | ||
Pro: async (prompt) => (await Api()).Get("v1/ai/google/gemini/pro", { prompt }), | ||
ProVisionModelAttach: async (image, prompt) => (await Api()).Post("v1/ai/google/gemini/pro-vision-attach", { image, prompt }), | ||
ProVisionModelUrl: async (image, prompt) => (await Api()).Get("v1/ai/google/gemini/pro-vision-url", { image, prompt }) | ||
Text: async function(options) { | ||
const { model, version, prompt } = options; | ||
|
||
if (model === "1.0-pro") { | ||
if (version === 1) return (await Api()).Get("v1/ai/google/gemini/1.0-pro/text/model1", { prompt }); | ||
if (version === 2) return (await Api()).Get("v1/ai/google/gemini/1.0-pro/text/model2", { prompt }); | ||
if (version === 3) return (await Api()).Get("v1/ai/google/gemini/1.0-pro/text/model3", { prompt }); | ||
} | ||
}, | ||
Vision: async function(options) { | ||
const { model, type, version, image, prompt } = options; | ||
|
||
if (model === "1.0-pro" && type === "attacment") { | ||
if (version === 1) return (await Api()).Post("v1/ai/google/gemini/1.1-pro/vision/attach/model1_deprecated", { image, prompt }); | ||
} | ||
if (model === "1.0-pro" && type === "url") { | ||
if (version === 1) return (await Api()).Get("v1/ai/google/gemini/1.1-pro/vision/url/model1_deprecated", { image, prompt }); | ||
} | ||
}, | ||
}, | ||
Bard: { | ||
Model1: async (prompt) => (await Api()).Get("v1/ai/google/bard/model1", { prompt }), | ||
Model2Image: async (url, prompt) => (await Api()).Get("v1/ai/google/bard/model2-img", { url, prompt }), | ||
} | ||
Text: async function(options) { | ||
const { version, prompt } = options; | ||
|
||
if (version === 1) return (await Api()).Get("v1/ai/google/bard/text/model1_deprecated", { prompt }); | ||
}, | ||
}, | ||
} | ||
}; |
Oops, something went wrong.