GithubHelp home page GithubHelp logo

murluki / gogpt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gyrusdentatus/gogpt

0.0 0.0 0.0 12 KB

Interactive ChatGPT CLI app written in Go with colourized output + payment system

Go 100.00%

gogpt's Introduction

GoGPT

A simple CLI implementation with some colored output using OpenAI's GPT-3.5-turbo and Go. You can choose your role as a writer, programmer or teacher. It's just a first test hacked together in an hour or so. BIG Thanks to @sashabaranov and @fatih (took me some time to figure out how to make colorized output in Go haha ...) image

Dependencies (only if you want to fuck around but you need Go to build this or run it obviously)

  • OpenAI API key - for lazy people like me, here is a direct link where to find/create on their website OpenAI
  • Go 1.17+
  • github.com/fatih/color
  • github.com/sashabaranov/go-openai

Setup

  1. Install Go and set up your Go environment. Tested with v1.19.6

  2. Just clone the stuff:

git clone https://github.com/gyrusdentatus/GoGPT.git GoGPT ```

  1. Replace "your token" with your actual OpenAI API key.

Running the chatbot

To run the chatbot, simply execute the following command:


go run main.go

or build the whole thingy with build instead of run. You know the drill ... ;]

Note:

This is WIP and obviously I need to implement some memory recall as the regular chatgpt client, but surpringly it took just a few lines of code. Happy for any contributions, PRs and comments or whatever shitposts. Feel free to cringe if you check the first commit. I always check for these things but in this case it does not matter because I deleted the *** already :) Otherwise I would have never pushed it anyway.

gogpt's People

Contributors

gyrusdentatus 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.