Skip to main content

This package contains implementation of the application enabling Gemini Pro usage on command-line interface (CLI).

Project description

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](images/Main Menu.png)

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gemini-pro-cli-1.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gemini_pro_cli-1-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file gemini-pro-cli-1.tar.gz.

File metadata

  • Download URL: gemini-pro-cli-1.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for gemini-pro-cli-1.tar.gz
Algorithm Hash digest
SHA256 b03e2c20758792eebb449001e5f8b9bc97f2a5104c09f8e56c0737634fe6ca13
MD5 aba9414d9ed3aeb895ec2a7a8fa1458a
BLAKE2b-256 9b4c04021fed52d9b22206e5b0175b2d5ad47da8b33fb96d5860db2fd1f2ad87

See more details on using hashes here.

File details

Details for the file gemini_pro_cli-1-py3-none-any.whl.

File metadata

  • Download URL: gemini_pro_cli-1-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for gemini_pro_cli-1-py3-none-any.whl
Algorithm Hash digest
SHA256 ea2a8456f4ef8878ad6ce21ab37d1420349d61a2cd698f45a5f83e652aa296ae
MD5 ee07aecee1df916299a48009bf3a0fca
BLAKE2b-256 00bc9e17e21b67501dcbc86adc581eaf11de3e0258a6c5d264bb81f2ee7df97f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page