Skip to content

Commit

Permalink
refactor: Run Discord Copilot workflow to fix environment variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
xuelink committed May 20, 2024
1 parent fa64d23 commit 1baaf1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Run Discord Script
name: Run Discord Copilot

on:
push:
Expand Down Expand Up @@ -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 &
2 changes: 1 addition & 1 deletion utils/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1baaf1c

Please sign in to comment.