Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/VolkanSah/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
https://github.com/VolkanSah/GPT-over-CLI
chatgpt cli command-line-interface gpt python python3 shell terminal
Last synced: 3 months ago
JSON representation
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
- Host: GitHub
- URL: https://github.com/VolkanSah/GPT-over-CLI
- Owner: VolkanSah
- Created: 2023-07-01T11:48:16.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-07-02T08:40:21.000Z (over 1 year ago)
- Last Synced: 2024-08-03T23:03:13.728Z (6 months ago)
- Topics: chatgpt, cli, command-line-interface, gpt, python, python3, shell, terminal
- Language: Python
- Homepage: https://github.com/VolkanSah/GPT-over-CLI/
- Size: 17.6 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# 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:
```bash
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](https://github.com/volkansah)