Skip to content

Commit

Permalink
Update Packages
Browse files Browse the repository at this point in the history
  • Loading branch information
TecEash1 committed May 2, 2024
1 parent 74880e6 commit e433bdf
Show file tree
Hide file tree
Showing 5 changed files with 97 additions and 118 deletions.
13 changes: 3 additions & 10 deletions events/taurusai.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ module.exports = {
);
const personalityLines = personalityContent.split("\n");

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.`;
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.`;

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

const generationConfig = {
Expand All @@ -104,14 +104,7 @@ module.exports = {
const model = genAI.getGenerativeModel(
{
model: "gemini-1.5-pro-latest",
systemInstruction: {
role: "system",
parts: [
{
text: parts1,
},
],
},
systemInstruction: instruction,
},
{
safetySettings,
Expand Down
13 changes: 3 additions & 10 deletions interactions/context-menus/message/taurusai.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,10 @@ module.exports = {
.map(([platform, status]) => `${platform}: ${status}`)
.join("\n");

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.`;
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.`;

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

const generationConfig = {
Expand All @@ -127,14 +127,7 @@ module.exports = {
const model = genAI.getGenerativeModel(
{
model: "gemini-1.5-pro-latest",
systemInstruction: {
role: "system",
parts: [
{
text: parts1,
},
],
},
systemInstruction: instruction,
},
{
safetySettings,
Expand Down
13 changes: 3 additions & 10 deletions interactions/modals/category/ask.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ module.exports = {
.map(([platform, status]) => `${platform}: ${status}`)
.join("\n");

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.`;
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.`;

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

const generationConfig = {
Expand All @@ -89,14 +89,7 @@ module.exports = {
const model = genAI.getGenerativeModel(
{
model: "gemini-1.5-pro-latest",
systemInstruction: {
role: "system",
parts: [
{
text: parts1,
},
],
},
systemInstruction: instruction,
},
{
safetySettings,
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@
"url": "https://github.com/TecEash1/Taurus/issues"
},
"dependencies": {
"@google/generative-ai": "^0.7.1",
"@google/generative-ai": "^0.9.0",
"@iamtraction/google-translate": "^2.0.1",
"@tensorflow/tfjs-node": "^4.18.0",
"@tensorflow/tfjs-node": "^4.19.0",
"api": "^6.1.1",
"axios": "^1.6.8",
"blessed": "^0.1.81",
"chalk": "^5.3.0",
"discord-api-types": "^0.37.79",
"discord-api-types": "^0.37.83",
"discord.js": "^14.14.1",
"figlet": "^1.7.0",
"moment": "^2.30.1",
Expand Down
Loading

0 comments on commit e433bdf

Please sign in to comment.