Git Product home page Git Product logo

chatgpt-cli's Introduction

ChatGPT CLI

The ChatGPT CLI is a command-line interface tool that allows you to communicate with the ChatGPT language model. You can use this tool to generate text responses to prompts, have conversations with the model, and explore its capabilities.

Features

  • Easy-to-use CLI interface
  • Ability to generate text responses to prompts
  • Ability to have conversations with the model
  • Support for various parameters to customize the output
  • Integration with the OpenAI API for accessing the ChatGPT model

Installation

  • Clone the repository from GitHub:
git clone https://github.com/akash-kumar-saw/chatgpt-cli
  • Install the required dependencies:
cd chatgpt-cli
go mod tidy
  • Build the CLI tool:
go build .
  • Run the CLI tool:
chatgpt-cli

Configuration

The application requires an OpenAI API key to function. You can obtain an API key by following the instructions in the OpenAI API documentation. Once you have an API key, you can set it using the following commands.

echo "API_KEY="<OpenAI API Key>"" >> .env

Usage

  • Generating text responses:
***** ChatGPT - Press 'Q' to Exit *****
You : What is the meaning of life?
  • Having a conversation with the model:
***** ChatGPT - Press 'Q' to Exit *****
You : Hi, how are you?

I'm fine, thanks. How can I help you?

You : q
***** Thanks for Using ChatGPT *****

Contributing

If you want to contribute to this project, you can submit pull requests, report bugs, or suggest new features.

Credits

This project was developed by Akash Kumar Saw and is based on the OpenAI API.

chatgpt-cli's People

Contributors

akash-kumar-saw avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.