Skip to content

Commit

Permalink
Update Google Generative AI Package
Browse files Browse the repository at this point in the history
  • Loading branch information
TecEash1 committed Mar 27, 2024
1 parent 9b2e9bb commit a62533d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions events/taurusai.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,11 @@ module.exports = {
var history = [
{
role: "user",
parts: parts1,
parts: [{text: parts1}],
},
{
role: "model",
parts: `I will greet the user with their name: <@${message.author.id}>. I will also limit all of my responses to 2000 characters or less, regardless of what you say. Feel feel free to ask me anything! 😊`,
parts: [{text:`I will greet the user with their name: <@${message.author.id}>. I will also limit all of my responses to 2000 characters or less, regardless of what you say. Feel feel free to ask me anything! 😊`}],
},
];

Expand Down
4 changes: 2 additions & 2 deletions interactions/context-menus/message/taurusai.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,11 @@ module.exports = {
var history = [
{
role: "user",
parts: parts1,
parts: [{text: parts1}],
},
{
role: "model",
parts: `I will greet the user with their name: <@${message.author.id}>. I will also limit all of my responses to 2000 characters or less, regardless of what you say. Feel feel free to ask me anything! 😊`,
parts: [{text:`I will greet the user with their name: <@${message.author.id}>. I will also limit all of my responses to 2000 characters or less, regardless of what you say. Feel feel free to ask me anything! 😊`}],
},
];

Expand Down
4 changes: 2 additions & 2 deletions interactions/modals/category/ask.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,11 @@ module.exports = {
history: [
{
role: "user",
parts: parts1,
parts: [{text: parts1}],
},
{
role: "model",
parts: `I will greet the user with their name: <@${interaction.user.id}>. I will also limit all of my responses to 2000 characters or less, regardless of what you say. Feel feel free to ask me anything! 😊`,
parts: [{text: `I will greet the user with their name: <@${interaction.user.id}>. I will also limit all of my responses to 2000 characters or less, regardless of what you say. Feel feel free to ask me anything! 😊`}],
},
],
generationConfig: {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"url": "https://github.com/TecEash1/Taurus/issues"
},
"dependencies": {
"@google/generative-ai": "^0.2.1",
"@google/generative-ai": "^0.3.1",
"@iamtraction/google-translate": "^2.0.1",
"@tensorflow/tfjs-node": "^4.17.0",
"api": "^6.1.1",
Expand Down

0 comments on commit a62533d

Please sign in to comment.