Skip to content

Bug: ChatBot not displaying Gemini API responses #424

Description

@riddhimagupta2

Description

The chatbot accepts user input successfully, but no response is displayed after sending a message to the Gemini API.

Current Behavior

  • User messages appear correctly
  • No bot response is shown
  • Errors are not visible in the UI

Expected Behavior

  • Bot responses should display properly
  • API errors should be handled and shown when needed
  • Null responses should be handled safely

Suggested Fix

  • Add proper error handling using try-catch
  • Handle null API responses
  • Add loading/error states for better debugging and UX

Tech Stack

  • Flutter
  • google_generative_ai
  • Gemini API

Enhancement

  • Add typing indicator
  • Improve chat bubble UI
  • Improve response formatting

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions