Skip to content

This repository contains the code for a web-based multimodal web chat application that integrates gemini AI, allowing users to interact using both text and images.

Notifications You must be signed in to change notification settings

bisnuray/GeminiAiWeb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Gemini AI Web Chat 🌌

GitHub Repo stars GitHub issues GitHub pull requests GitHub contributors GitHub forks

Gemini is an advanced Artificial Intelligence (AI) system designed to intelligently respond to diverse prompts, including pictures. This repository contains the code for a web-based multimodal web chat application that integrates gemini AI, allowing users to interact using both text and images.


Features

  • Text Interaction: Users can type prompts to receive text-based responses from a generative AI model.
  • Multi-turn Conversations: Users can chat with gemini-pro model that response to the chat history.
  • Image Uploads: Users can upload images as part of their queries to the gemini-pro-vision AI model.
  • Real-Time AI Response: Provides real-time responses to queries using Google's Generative AI API.
  • Syntax Highlighting and Markdown Support: Responses that contain code are highlighted, and markdown is rendered into HTML.

Prerequisites

  • You need to have a web browser to run the the script
  • An API key from Google's Generative AI service is required.

Getting Started 🚀

To utilize Gemini AI, configure your environment with the necessary API key and service account credentials. Follow these steps to get started:

  1. Obtain a Google API key by following the link here.

  2. Set the Google API key to the script

    Replace your_api_key Replace with your gemini-api actual API key in this line const API_KEY = 'your_api_key';

Usage

  • Run the script in a web browser.
  • Type your prompt in the input field to use gemini-pro model. this model support multi-turn conversations (chat)
  • Upload an image with write a prompt to use gemini-pro-vision model this model not support multi-turn conversations (chat)
  • Click the "Send" button to receive a response from the AI model.
  • The chat interface supports displaying messages as well as images returned from the AI model.

Rate Limits

  • Input Token Limit: Maximum of 12,288 tokens per request, where each token is approximately equivalent to 4 characters.
  • Output Token Limit: The model can generate up to 4,096 tokens in a single response.
  • Rate Limit: The rate limit for Gemini Pro models is 60 requests per minute (RPM).

Author

Contributing

Contributions are welcome! Please feel free to submit pull requests or create issues for bugs and feature requests.

About

This repository contains the code for a web-based multimodal web chat application that integrates gemini AI, allowing users to interact using both text and images.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published