Skip to content

[GSSoC 2026] Fix #424 - ChatBot not displaying Gemini API responses#426

Closed
prem-create wants to merge 1 commit into
andoriyaprashant:mainfrom
prem-create:fix/gssoc-2026-issue-424-chatbot-response
Closed

[GSSoC 2026] Fix #424 - ChatBot not displaying Gemini API responses#426
prem-create wants to merge 1 commit into
andoriyaprashant:mainfrom
prem-create:fix/gssoc-2026-issue-424-chatbot-response

Conversation

@prem-create

Copy link
Copy Markdown

Problem / Issue No: #424

  • The chatbot was accepting user input successfully, but Gemini API responses were not being displayed in the UI.

Describe Problem / Root Cause

  • After debugging locally, the issue was traced to the Gemini model configuration. The project was using an outdated model:

gemini-1.5-flash-latest

This model is no longer supported for the current Gemini API version, which caused the API request to fail and prevented chatbot responses from appearing.

you may check model availability by putting your api key here

 https://generativelanguage.googleapis.com/v1beta/models?key=YOUR_API_KEY

Solution proposed

  • Updated the Gemini model configuration from:

gemini-1.5-flash-latest

to:

gemini-2.5-flash

Additional Information

  • Additional works can be done are

add proper try-catch handling for Gemini API exceptions

Add null and empty response checks

Prevent silent chatbot failures

Improve loading/error handling for better debugging and UX

Screenshots

  • local test screenshot
  • Screenshot 2026-05-15 190353

@github-actions

Copy link
Copy Markdown

Thank you for submitting your pull request! We'll review it as soon as possible.

@netlify

netlify Bot commented May 15, 2026

Copy link
Copy Markdown

Deploy Preview for aquamarine-kheer-83feda failed. Why did it fail? →

Name Link
🔨 Latest commit 48253cb
🔍 Latest deploy log https://app.netlify.com/projects/aquamarine-kheer-83feda/deploys/6a07254363c1e90008117131

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.

2 participants