GithubHelp home page GithubHelp logo

svc-user / chat-console Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 841 KB

A console application to chat with ChatGPT using the OpenAI Chat API. Requires a Paid account and an API key at OpenAI.

License: The Unlicense

C# 98.77% Python 1.23%

chat-console's Introduction

chat-console ๐Ÿค–๐Ÿ’ฌ

A console application to chat with ChatGPT using the OpenAI Chat API. Requires a Paid account and an API key at OpenAI.

Getting started ๐Ÿš€

First you'll need an OpenAI account, second you'll need a paid account by adding a payment method ๐Ÿ’ณ and lastly you'll need to create an API key ๐Ÿ”‘ to use with this application.

At first run a settings.json file is created. Set your ApiKey in that file and restart the application.

Help โ“โ”โ“

Run the command /help in the console to get help. The output is as follows:

Command Description
/help displays helpful information about the chatbot.
/reset clear chat context. Start from scratch.
/export Exports the current chat history to a log.
/prompts list prompts stored in the Prompts directory.
/prompt <prompt file> select a prompt. Call with no promt-file to unset the prompt.
/clear clears the chat window.
/quit or /exit ends the conversation with the chatbot and close the bot.

The settings file ๐Ÿ“„

Settings are persisted in a json-file located under %USERPROFILE%/.chat-console/settings.json.

The RequestParams settings parameter corresponds to the chat completion request as documented by OpenAI here.

Other settings are local to the application.

Setting Description
SystemMessage If set, this string will be used to set the "system"-message for instructing the model as to what and how it should act. Read more about it here.. Can be set for a session by using the /prompt command.
ApiKey You API key.

Logs ๐Ÿ“

Logs that have been generated with the /export command can be found under %USERPROFILE%/.chat-console/Logs/.

Prompts ๐Ÿ“

Prompts can be stored in the %USERPROFILE%/.chat-console/Prompts/ directory.

Todo โœ”๏ธ

  • Multiline input
  • Conversation logging
  • Count tokens for ContextLength instead of messages.
  • Multiline input
  • Prompts library

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.