diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 4d6c314..f6874b0 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,4 +1,4 @@ -name: Run Discord Script +name: Run Discord Copilot on: push: @@ -26,4 +26,4 @@ jobs: DISCORD_BOT_TOKEN: ${{ secrets.DISCORD_BOT_TOKEN }} CLIENT_ID: ${{ secrets.CLIENT_ID }} GUILD_ID: ${{ secrets.GUILD_ID }} - run: npm run discord + run: npm run discord & diff --git a/utils/common.js b/utils/common.js index 0b3dafe..e248704 100644 --- a/utils/common.js +++ b/utils/common.js @@ -23,7 +23,7 @@ config(); // Load environment variables from .env file // Get your API key from https://makersuite.google.com/app/apikey // Access your API key as an environment variable -export const genAI = new GoogleGenerativeAI(process.env.API_KEY); +export const genAI = new GoogleGenerativeAI(process.env.GEMINI_API_KEY); // Converts local file information to a GoogleGenerativeAI.Part object export function fileToGenerativePart(path, mimeType) {