Skip to content

GPT-over-CLI is a simple, lightweight command-line interface (CLI) for interacting with OpenAI's GPT models, including GPT-3, GPT-4 and others. This tool provides a quick and easy way for developers and researchers to generate responses from OpenAI's API directly from their terminal

Notifications You must be signed in to change notification settings

VolkanSah/GPT-over-CLI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GPT-over-CLI

GPT-over-CLI is a simple, lightweight command-line interface (CLI) for interacting with OpenAI's GPT models, including GPT-3, GPT-4 and others. This tool provides a quick and easy way for developers and researchers to generate responses from OpenAI's API directly from their terminal.

Features

  • Support for multiple models: GPT-over-CLI supports a wide range of models provided by OpenAI including davinci, curie, babbage, ada and various specialized text and code models.
  • Easy to use: Just provide your prompt as a command-line argument and get the model's response printed directly in your terminal.

Usage

  1. Clone this repository to your local machine.

  2. Install the required Python dependencies.

  3. Add your OpenAI API key to your environment variables, or replace 'YOUR_API_KEY' in the script with your actual API key.

  4. Use the script with the following command:

python3 gptcli.py "your prompt here"

Disclaimer

This tool is intended for research and development purposes. Please use responsibly and be mindful of OpenAI's use case policy. Do not expose your API key publicly.

Please note, this tool is not intended to replace OpenAI's chat models for interactive conversation applications. It is designed for quick, one-off interactions with the API from the terminal.

Contribution

Feel free to contribute to this project by opening issues or submitting pull requests. All contributions are welcome.

Credits

Volkan Kücükbudak

About

GPT-over-CLI is a simple, lightweight command-line interface (CLI) for interacting with OpenAI's GPT models, including GPT-3, GPT-4 and others. This tool provides a quick and easy way for developers and researchers to generate responses from OpenAI's API directly from their terminal

Topics

Resources

Stars

Watchers

Forks

Sponsor this project

 

Languages