Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fabriciocarraro/google_gemini-chatbot
https://github.com/fabriciocarraro/google_gemini-chatbot
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/fabriciocarraro/google_gemini-chatbot
- Owner: fabriciocarraro
- Created: 2024-05-05T13:53:37.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-05-05T13:58:21.000Z (8 months ago)
- Last Synced: 2024-05-05T14:43:11.862Z (8 months ago)
- Language: Jupyter Notebook
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.