apexify.js 4.9.20 → 4.9.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -619,7 +619,7 @@ async function ApexChat(model, prompt, { userId, memory, limit, instruction, Api
|
|
|
619
619
|
return '';
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
|
-
const genAI = new generative_ai_1.GoogleGenerativeAI('
|
|
622
|
+
const genAI = new generative_ai_1.GoogleGenerativeAI('AIzaSyCSNDp8lx9CT_DlLvbQwEAdOFC6Srph1dM');
|
|
623
623
|
const model = genAI.getGenerativeModel({ model: "text-embedding-004" });
|
|
624
624
|
async function getRelevantHistoryAI(prompt, history, maxResults, threshold = 0.7) {
|
|
625
625
|
const trimmedPrompt = prompt.length > 20000 ? prompt.slice(0, 10000) + "..." + prompt.slice(-10000) : prompt;
|
|
@@ -619,7 +619,7 @@ async function ApexChat(model, prompt, { userId, memory, limit, instruction, Api
|
|
|
619
619
|
return '';
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
|
-
const genAI = new generative_ai_1.GoogleGenerativeAI('
|
|
622
|
+
const genAI = new generative_ai_1.GoogleGenerativeAI('AIzaSyCSNDp8lx9CT_DlLvbQwEAdOFC6Srph1dM');
|
|
623
623
|
const model = genAI.getGenerativeModel({ model: "text-embedding-004" });
|
|
624
624
|
async function getRelevantHistoryAI(prompt, history, maxResults, threshold = 0.7) {
|
|
625
625
|
const trimmedPrompt = prompt.length > 20000 ? prompt.slice(0, 10000) + "..." + prompt.slice(-10000) : prompt;
|
package/lib/ai/ApexModules.ts
CHANGED
|
@@ -652,7 +652,7 @@ async function ApexChat(
|
|
|
652
652
|
}
|
|
653
653
|
}
|
|
654
654
|
|
|
655
|
-
const genAI = new GoogleGenerativeAI('
|
|
655
|
+
const genAI = new GoogleGenerativeAI('AIzaSyCSNDp8lx9CT_DlLvbQwEAdOFC6Srph1dM');
|
|
656
656
|
|
|
657
657
|
const model = genAI.getGenerativeModel({ model: "text-embedding-004" });
|
|
658
658
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "apexify.js",
|
|
3
|
-
"version": "4.9.
|
|
3
|
+
"version": "4.9.21",
|
|
4
4
|
"description": "Unlimited AI models and Canvas library. Supports ts & js (supports front/back end).",
|
|
5
5
|
"author": "zenith-79",
|
|
6
6
|
"license": "MIT",
|
|
@@ -229,7 +229,7 @@
|
|
|
229
229
|
"@discordjs/voice": "^0.18.0",
|
|
230
230
|
"@google/generative-ai": "^0.22.0",
|
|
231
231
|
"@napi-rs/canvas": "^0.1.53",
|
|
232
|
-
"apexify.js": "^4.9.
|
|
232
|
+
"apexify.js": "^4.9.20",
|
|
233
233
|
"axios": "^1.7.7",
|
|
234
234
|
"discord.js": "^14.18.0",
|
|
235
235
|
"fluent-ffmpeg": "^2.1.3",
|