Home

Awesome

<p align="center"><img src="./image-assets/logo.svg" width="250"><p> <h4 align="center">A simple script to chat with OpenAI's ChatGPT</h4> <p align="center"> <img alt="Script" src="https://img.shields.io/badge/Shell_Script-121011?style=for-the-badge&logo=gnu-bash&logoColor=white"> <a href="https://github.com/Brutuski/hal2023-cli/blob/main/LICENSE"> <img alt="License" src="https://img.shields.io/badge/MIT-LICENSE-1976D2?style=for-the-badge"></a> <img alt="Version" src="https://img.shields.io/badge/v-1.11.11-D8DEE9?style=for-the-badge"> </p>

Index

Introduction

Inspired by the infamous HAL9000 from the cult classic "2001: A Space Odyssey", this simple CLI enables you to interact with OpenAI's ChatGPT and generate images.

Getting Started

You would need an API key from OpenAI to use this CLI. Open this link and generate an API key for yourself. Upon installation, this CLI stores your personal API key in a file called .chat-api-key in your Home directory.

This CLI is using the gpt-3.5-turbo model by default. You can read more about it here.

To interact with text-davinci-003 model, simply start your query with -davinci followed by a space and the rest of your query after that.

gpt-4 Model is also available. Start a prompt with -gpt4 followed by the rest of the query.

Screenshots

<p align="center"><img src="./image-assets/screenshot-1.png"><p> <p align="center"><img src="./image-assets/screenshot-2.png"><p> <p align="center"><img src="./image-assets/screenshot-3.png"><p> <p align="center"><img src="./image-assets/recording.gif" width="750"><p>

Requirements

Optional

Installation

curl -sS https://github.com/Brutuski/hal2023-cli/blob/main/build.sh | sudo -E bash
Manual Installation

Usage

Project Structure

├── hal2023                     # Main script
├── README.md                   # Documentation file
├── CONTRIBUTING.md             # Contributing document
├── CODE_OF_CONDUCT.md          # Code of Conduct document
├── build.sh                    # To install, check requirements and take API key input
├── image-assets                # Directory for all documentation related image assets
├── .gitignore                  # File to primarily exclude .idea and .DS_Store
├── .github                  
  ├── CHANGELOG.md              # Changelog
  ├── ISSUES_TEMPLATE.md        # Issues reporting template
  └── PULL_REQUEST_TEMPLATE.md  # Pull request submission template
└── LICENSE                     # MIT License file

Documentation

Issues Template. Please report any issues or feature requests here.

Changes can be tracked in the Changelog

To contribute, please check out Contributing and Pull Request Template

Code of Conduct

OpenAI's Data Policy

Please refer to OpenAI's data usage policy to stay informed about how your queries and prompts are being handled by them.

Credit

The installation script was inspired by bash-script-template. It replaced the previously used method of Makefile and a separate check_requirements.sh script.