apexify.js 4.0.0 → 4.0.2
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.
|
@@ -22,7 +22,7 @@ export async function geminiFlash(message: any, AI: { AiPersonality: string | nu
|
|
|
22
22
|
maxOutputTokens: 750,
|
|
23
23
|
};
|
|
24
24
|
|
|
25
|
-
const systemInstruction =
|
|
25
|
+
const systemInstruction = `${personalityString}\n And working on discord in serverName: ${message.guild.name} at channelName: ${message.channel.name} and responding to the userName: ${message.author.username}`;
|
|
26
26
|
const model = genAI.getGenerativeModel({ model: "gemini-1.5-flash-latest", systemInstruction, generationConfig});
|
|
27
27
|
|
|
28
28
|
const chat = model.startChat({
|
|
@@ -24,7 +24,7 @@ export async function geminiPro(message: any, AI: { AiPersonality: string | null
|
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
const systemInstruction = `You are an ai bot in discord replying to ${message.author.globalName || message.author.username } at ${message.channel.name}.`;
|
|
27
|
-
const model = genAI.getGenerativeModel({ model: "gemini-pro", systemInstruction, generationConfig});
|
|
27
|
+
const model = genAI.getGenerativeModel({ model: "gemini-1.5-pro-latest", systemInstruction, generationConfig});
|
|
28
28
|
|
|
29
29
|
const chat = model.startChat({
|
|
30
30
|
history: [
|