Skip to content

Commit

Permalink
Remove unused gemini key, fix ai ping error potentially
Browse files Browse the repository at this point in the history
  • Loading branch information
TecEash1 committed May 27, 2024
1 parent f5e13f4 commit 3713e21
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions events/taurusai.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ module.exports = {
userQuestion: fetchedUserQuestion,
threadMessages: fetchedThreadMessages,
messageDeleted: fetchedMessageDeleted,
} = await fetchThreadMessages(geminiApiKey, message);
} = await fetchThreadMessages(message);
if (fetchedUserQuestion === null && fetchedThreadMessages === null)
return;
threadMessages = fetchedThreadMessages;
Expand Down Expand Up @@ -98,7 +98,7 @@ module.exports = {
);
const personalityLines = personalityContent.split("\n");

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.`;
instruction = `${personalityLines}\n Please greet the user with a greeting and then the current users name, which is: <@${message.author.id}> and limit your responses to 2000 characters or less. Please note the current user may change.`;

if (Object.keys(user_status).length) {
instruction += ` The user's status/presence is currently:\n${status_devices}`;
Expand Down
2 changes: 1 addition & 1 deletion functions/other/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ async function handleResponse(
return await loadingMsg.edit({ content: responseText, embeds: info_embed });
}

async function fetchThreadMessages(Gemini_API_KEY, message) {
async function fetchThreadMessages(message) {
let threadMessages = [];
let messageDeleted;
userQuestion = message.content;
Expand Down

0 comments on commit 3713e21

Please sign in to comment.