Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fabriciocarraro/google_gemini-chatbot


https://github.com/fabriciocarraro/google_gemini-chatbot

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# Google Gemini - Chatbot

This Python code snippet demonstrates how to interact with Google's Generative AI (Gemini) via their Python SDK, specifically designed for use in a Google Colab environment. The script showcases the setup process, model configuration, and interaction with the AI to handle user inputs and display responses.

## Key Features
- **API Configuration**: Uses the user's API key stored in Google Colab's secure environment.
- **Model Listing**: Lists available models that support content generation.
- **Model Configuration**: Sets up the generative model with specific generation and safety settings.
- **Interactive Chat**: Initiates an interactive chat session where users can enter prompts, and the model responds accordingly.
- **History Visualization**: Enhances the chat history visualization using Markdown formatting.