From d374f7c9bce19508b3f56e6033645732a8c3330e Mon Sep 17 00:00:00 2001 From: Abhi Das Date: Wed, 14 Jan 2026 06:00:03 +0000 Subject: [PATCH] fix(ci): update gemini model to 1.5-flash --- .github/workflows/geminicli.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/geminicli.yml b/.github/workflows/geminicli.yml index 64f0165..ccb0d45 100644 --- a/.github/workflows/geminicli.yml +++ b/.github/workflows/geminicli.yml @@ -18,14 +18,14 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - # Debug Step: Runs FIRST to verify the key + # Debug Step: Runs FIRST to verify the key - name: Debug API Key (Curl) env: API_KEY: ${{ secrets.GEMINI_API_KEY }} run: | curl -H "Content-Type: application/json" \ -d '{ "contents": [{"parts":[{"text": "Hello"}]}] }' \ - "https://generativelanguage.googleapis.com/v1beta/models/gemini-pro:generateContent?key=$API_KEY" + "https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash:generateContent?key=$API_KEY" # Main Action (Manual Curl) - name: Call Gemini API id: gemini @@ -42,7 +42,7 @@ jobs: RESPONSE=$(curl -s -X POST \ -H "Content-Type: application/json" \ -d @payload.json \ - "https://generativelanguage.googleapis.com/v1beta/models/gemini-pro:generateContent?key=$API_KEY") + "https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash:generateContent?key=$API_KEY") # Extract text using jq OUTPUT=$(echo "$RESPONSE" | jq -r '.candidates[0].content.parts[0].text // "Error: No response text found"')