Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 732 Bytes

File metadata and controls

29 lines (21 loc) · 732 Bytes

How to use this project

This project provides a reference for the Gemini Pro conversation example, This short example written in Python can be referred to by those who need it. Using the library provided by Google to complete a chat function is very simple.

Install packages

pip install ipython
pip install google-generativeai

Replace 'Your_API_Key_Goes_Here' in main.py with your API KEY

GOOGLE_API_KEY='Your_API_Key_Goes_Here'

Run the program

python main.py

Start using your API KEY to chat

Enter your question in the command line to start a conversation with Gemini Pro

Reference

Google Gemini API - Get Started (Python)