GithubHelp home page GithubHelp logo

chat-gpt-console's Introduction

chat-gpt-console

A simple app to use ChatGPT in terminal

Logo

Build from source:

> dotnet publish \
  -c Release \
  -r {your CPU type} \ 
  -p:PublishSingleFile=true \ 
  --self-contained true \
  --output publish/{your CPU type}/ ⏎

whereas {your CPU type} is the one of the following values,

  • osx-arm64: OSX (Apple Silicons M1, M2)
  • osx-x64: OSX (Intel)
  • linux-x64: Linux (Intel)
  • linux-arm64: Linux (ARM)
  • win-x64: Windows (Intel)
  • win-arm64: Windows (ARM)

Download it from the repo:

  • Linux (ARM): linux-arm64 (SHA256: 93d650b6261b15cb868ef7da38f8855793cf4be830790b597d9c55d65c0f279d)

  • Linux (Intel): linux-x64 (SHA256: 7e70361f09718fd5976e47a8c3aca162ff9e72b02d12ce2b3b9020114b1df14d)

  • OSX (Apple Silicons M1, M2): osx-arm64 (SHA256: c9ba93ab46b897ed853d477ac9f41b78e7ce6ffc40635d160f6f911a9ca66b3e)

  • OSX (Intel): osx-x64 (SHA256: 5195f737b83b5409a577f95330dfda2c3dd87ea5dbd3e20a0f93fcf41f435c30)

  • Windows (Intel): win-x64 (SHA256: c0663c2ee48c0de2efb5df5b649f40e668eabd99525a9f70a3766bee32a9f3fe)

  • Windows (ARM): win-arm64 (SHA256: 17ee533ac61c9df57111723eaa9becacebc60d9a99d3dd9243b27e7992bb5789)

Of couse you will need to give the permission to execute the file

 > chmod u+x chat-gpt ⏎
 > ./chat-gpt ⏎

For Mac, go to 'System Settings -> Privacy & Security', Press 'Allow Anyway'

How to get your API KEY from OpenAI.org

How to get your API KEY

For the first run, it will ask your API KEY, to store it to the 'appsettings.json' like the following.

{
 "OpenAI": {
   "ApiKey": "{your own OpenAPI key}",
   "Model": "text-davinci-003",
   "EndPoint": "https://api.openai.com/v1/completions"
 }
}

How to setup your own API KEY

How to setup your own API KEY

Run on Windows

Run on Windows

To do

  • Working on mobile app versions'
  • Various format of response types (images, links, code blocks, etc.)

Disclaimer:

This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.

Please note that this software has not been thoroughly tested and may contain bugs or errors. Use at your own risk. The authors make no guarantees or warranties regarding the use or functionality of this software.

chat-gpt-console's People

Contributors

cavecafe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

chat-gpt-console's Issues

Store appsettings.json in a standard location

I noticed that the settings file is stored in whichever folder you happen to be in when you run the chat-gpt binary. Every OS has its own concept of "location where user specific application settings should be stored", so it would be better to use those. Otherwise, users would need to enter their API key every time they start the application from a different folder, and their filesystem would be littered with config files.

When doing so, best also rename the file. The name appconfig.json is generic and doesn't tell me which app the config belongs to. It could also potentially clash with another app that also doesn't name their configs appropriately.

No output in terminal

I'm currently trying to run the application and found myself unable to get anything displayed on the terminal.

My system is win-x64

Keybind Script ?

So I love key binds for everything on my Linux, and I thought it would be so cool to do Windows+C for ChatGPT, but when try to run it the same way you do the "./chat-gpt" I get an error that it can't verify the API key event after changing the directory, First I tried linking it with a keyboard shortcut through the cinnamon keyboard system, sadly that did not work then I tried a basic .sh script that also did not work, and many other things, main point it seems to lose the API key somehow when I try to run it from another .sh script or from elsewhere like a shortcut. I'll post if I find a fix for anyone else doing what I'm doing (: Also one other thing, Does it not remember previous conversations? because there will be times I try to get it to recall things and it totally does not remember. Other then that cheers <3

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.