Skip to main content

gemini-pro-cli

This application allows users to use Gemini Pro on command-line interface (CLI).

Source Code

The source code for the Gemini Pro CLI application is available in https://github.com/GlobalCreativeApkDev/gemini-pro-cli/blob/master/main.py.

Installation

pip install gemini-pro-cli

How to Use the Application?

Pre-requisites:

  1. Python installed in your device.
  2. .env file in the same directory as <GEMINI_PRO_CLI_DIRECTORY> and has the value of GENAI_API_KEY.

First, open a Terminal or Command Prompt window and run the following command.

python3 <GEMINI_PRO_CLI_DIRECTORY>/main.py

Note: Replace <GEMINI_PRO_CLI_DIRECTORY> with the path to the directory of the application gemini-pro-cli.

Then, the application will start with something looking like in the screenshot below.

Application

You will then be asked to input the following values.

  1. Temperature - between 0 and 1 inclusive
  2. Top P - between 0 and 1 inclusive
  3. Top K - at least 1
  4. Max output tokens - at least 1

The following screenshot shows what is displayed after inputting the mentioned values.

Main Menu

Next, you will have two choices:

  1. Enter a non-empty prompt to receive a response from the AI.
  2. Enter an empty prompt to exit the application.

Below is an example of what happens when you entered a non-empty prompt.

AI

Release files for gemini-pro-cli 1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gemini-pro-cli 1.1
File Size Uploaded
gemini-pro-cli-1.1.tar.gz 2.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gemini-pro-cli 1.1
File Interpreter ABI Platform
gemini_pro_cli-1.1-py3-none-any.whl Python 3 none any Details

Total release size: 5.6 kB

Release files / gemini-pro-cli-1.1.tar.gz

Download URL gemini-pro-cli-1.1.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
342cf94a8eed1ca18956e62996a07cc54ff30b967d3b3337569ac882ffbd134a
BLAKE2b-256 checksum
How to use checksums
8381cb7847690689e8d60d2cb5f74cec7a268c3b3a6b8ef4707d24043d91c96c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.31.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.4

Release files / gemini_pro_cli-1.1-py3-none-any.whl

Download URL gemini_pro_cli-1.1-py3-none-any.whl
Size 3.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d5ec2734b90811158856335133cfb799a2502df1db468772ccd001dd27c7b651
BLAKE2b-256 checksum
How to use checksums
3f920fc6c5927d52f9e0f4d597d6e9db7f8f361a33e031da323cb50e13a1c949
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.31.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.4

Release history Release notifications | RSS feed

This release

1.1 This release

2 release files

1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page