Skip to content

sryku2000/GeminiProCommandLineSample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

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)

About

This is a basic chat example for Google Gemini Pro. Constructed using Python syntax.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages