Skip to content

Commit e433bdf

Browse files
committed
Update Packages
1 parent 74880e6 commit e433bdf

File tree

5 files changed

+97
-118
lines changed

5 files changed

+97
-118
lines changed

events/taurusai.js

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,10 @@ module.exports = {
9191
);
9292
const personalityLines = personalityContent.split("\n");
9393

94-
parts1 = `${personalityLines}\n Please greet the user with a greeting and then their name which is: <@${message.author.id}> and limit your responses to 2000 characters or less.`;
94+
instruction = `${personalityLines}\n Please greet the user with a greeting and then their name which is: <@${message.author.id}> and limit your responses to 2000 characters or less.`;
9595

9696
if (Object.keys(user_status).length) {
97-
parts1 += ` The user's status/presence is currently:\n${status_devices}`;
97+
instruction += ` The user's status/presence is currently:\n${status_devices}`;
9898
}
9999

100100
const generationConfig = {
@@ -104,14 +104,7 @@ module.exports = {
104104
const model = genAI.getGenerativeModel(
105105
{
106106
model: "gemini-1.5-pro-latest",
107-
systemInstruction: {
108-
role: "system",
109-
parts: [
110-
{
111-
text: parts1,
112-
},
113-
],
114-
},
107+
systemInstruction: instruction,
115108
},
116109
{
117110
safetySettings,

interactions/context-menus/message/taurusai.js

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,10 @@ module.exports = {
114114
.map(([platform, status]) => `${platform}: ${status}`)
115115
.join("\n");
116116

117-
parts1 = `${personalityLines}\n Please greet the user with a greeting and then their name which is: <@${message.author.id}> and limit your responses to 2000 characters or less.`;
117+
instruction = `${personalityLines}\n Please greet the user with a greeting and then their name which is: <@${message.author.id}> and limit your responses to 2000 characters or less.`;
118118

119119
if (Object.keys(user_status).length) {
120-
parts1 += ` The user's status/presence is currently:\n${status_devices}`;
120+
instruction += ` The user's status/presence is currently:\n${status_devices}`;
121121
}
122122

123123
const generationConfig = {
@@ -127,14 +127,7 @@ module.exports = {
127127
const model = genAI.getGenerativeModel(
128128
{
129129
model: "gemini-1.5-pro-latest",
130-
systemInstruction: {
131-
role: "system",
132-
parts: [
133-
{
134-
text: parts1,
135-
},
136-
],
137-
},
130+
systemInstruction: instruction,
138131
},
139132
{
140133
safetySettings,

interactions/modals/category/ask.js

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ module.exports = {
7676
.map(([platform, status]) => `${platform}: ${status}`)
7777
.join("\n");
7878

79-
parts1 = `${personalityLines}\n Please greet the user with a greeting and then their name which is: <@${interaction.user.id}> and limit your responses to 2000 characters or less.`;
79+
instruction = `${personalityLines}\n Please greet the user with a greeting and then their name which is: <@${interaction.user.id}> and limit your responses to 2000 characters or less.`;
8080

8181
if (Object.keys(user_status).length) {
82-
parts1 += ` The user's status/presence is currently:\n${status_devices}`;
82+
instruction += ` The user's status/presence is currently:\n${status_devices}`;
8383
}
8484

8585
const generationConfig = {
@@ -89,14 +89,7 @@ module.exports = {
8989
const model = genAI.getGenerativeModel(
9090
{
9191
model: "gemini-1.5-pro-latest",
92-
systemInstruction: {
93-
role: "system",
94-
parts: [
95-
{
96-
text: parts1,
97-
},
98-
],
99-
},
92+
systemInstruction: instruction,
10093
},
10194
{
10295
safetySettings,

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@
2323
"url": "https://github.com/TecEash1/Taurus/issues"
2424
},
2525
"dependencies": {
26-
"@google/generative-ai": "^0.7.1",
26+
"@google/generative-ai": "^0.9.0",
2727
"@iamtraction/google-translate": "^2.0.1",
28-
"@tensorflow/tfjs-node": "^4.18.0",
28+
"@tensorflow/tfjs-node": "^4.19.0",
2929
"api": "^6.1.1",
3030
"axios": "^1.6.8",
3131
"blessed": "^0.1.81",
3232
"chalk": "^5.3.0",
33-
"discord-api-types": "^0.37.79",
33+
"discord-api-types": "^0.37.83",
3434
"discord.js": "^14.14.1",
3535
"figlet": "^1.7.0",
3636
"moment": "^2.30.1",

0 commit comments

Comments
 (0)