This repository has been archived by the owner on Sep 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathreadme.txt
52 lines (43 loc) · 3 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/* This is readme.txt
Program : AiConsoleChat.cjs
Description : This is a simple chatbot that uses OpenAI API to generate responses.
: It is written in Node.js and uses OpenAI API.
: It is a console application and it is not a web application.
: It is a chatbot, not a chat application.
Author : Kristian Virtanen, [email protected]
Usage: : Open file "readme.txt" and read instructions.
: Install nodejs, openai, readline and fs modules.
: Open file "context.txt" and write instructions and context for the AI.
: Open file "AiConsoleChat.cjs" and change MyApiKey to your own API key.
: run from console AiConsoleChat.bat
Commands : ---help : show help
: ---exit : exit application
: ---clear or ---cls : clear screen
: ---catch show : show catchCode
: ---catch clear : clear catchCode
: ---catch file:filename : write catchCode to file
: ---reset : reset short history
: ---history : show short history
: ---context : show context
: ---load filename : load textfile in user input and send it to AI
catchCode : catchCode is a variable that stores the last piece of code that AI generated.
shortHistory : shortHistory is a variable that stores short history of chat.
: It is used to generate AI response.
: It is reset when user types ---reset.
context : context is a variable that stores instructions and context for the AI.
: It is allways passed to the AI as starting point for the conversation.
: It is loaded from file "context.txt" when program starts.
logShort : logShort is a file that stores short history of chat.
Adjusting : See const variables in the beginning of the file to adjust program.
: Adjust shortHistoryAdjust function to adjust short history.
: Adjust tokeniseUserInput function to adjust tokenisation.
: Adjust catchCodeAdjust function to adjust catchCode.
: Adjust shortHistoryAdjust function to adjust short history.
: Adjust aiResponseAdjust function to adjust AI response.
License : GNU General Public License v3.0
: https://www.gnu.org/licenses/gpl-3.0.en.html
Source code : https://github.com/EkBass/AiConsoleChat
foo : Some of my bass covers, including tutorials and lyric videos.
url : https://www.youtube.com/channel/UChrNQ4T6Xc3t0KrJtznutRw
Slava Ukraini
*/