svc-user / chat-console

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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


Languages

Language:C# 98.8%Language:Python 1.2%