Skip to content

fix: update Gemini API endpoint to v1beta - #40

Open
Udayan6611 wants to merge 2 commits into
abhi-jithb:masterfrom
Udayan6611:fix/v1beta-api-fetch
Open

Udayan6611 wants to merge 2 commits into
abhi-jithb:masterfrom
Udayan6611:fix/v1beta-api-fetch

Conversation

@Udayan6611

@Udayan6611 Udayan6611 commented Jun 4, 2026

Copy link
Copy Markdown

Description

This PR fixes the broken resume generation for the Gemini API by updating the endpoint from v1 to the required v1beta.

The previous v1 endpoint for gemini-1.5-flash was returning errors and failing the "AI Parse" stage for users. Updating the fetch URL restores full functionality for anyone selecting Gemini as their generation provider.

Changes Made

  • Endpoint Update: Modified the fetch request URL in index.html to target https://generativelanguage.googleapis.com/v1beta/... instead of the outdated v1 path.

Testing & Validation

  • Confirmed the bug locally: the v1 endpoint was throwing an HTTP error and halting the pipeline.
  • Verified the fix: submitting a URL with a valid Gemini API key now successfully fetches the data, passes the parsing stage, and generates the final PDF resume without console errors.

Context: GirlScript Summer of Code (GSSoC '26) Contribution.

Fixes #12

@vercel

vercel Bot commented Jun 4, 2026

Copy link
Copy Markdown

@Udayan6611 is attempting to deploy a commit to the Abhijith's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: Gemini API integration broken — users get errors when selecting Gemini provider

1 participant