source: gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/DEPRECATED/react-gui/README.txt@ 38824

Last change on this file since 38824 was 38804, checked in by davidb, 3 months ago

Starting server, and running as nohup separated; updated README

File size: 956 bytes
Line 
1
2Code based on the MIT-licensed github project:
3
4 https://github.com/hillis/gpt-4-chat-ui.git
5
6Updated to work with openai v4.x Nodejs API
7
8Then changed to work with a custom assistant that has been
9'taught' about a collection based on exporting the
10collection:
11
12 export.pl -save_as OpenAIGPTs ...
13
14Further changed so the ChatGPT GUI can be embedded in a Greenstone page.
15
16
17To setup and run the code:
18
191. Make sure you have created a '.env' field in the top-level of
20 this NodeJS project, and set the following lines accordingly
21 with the relevant values from your OpenAI account:
22
23----
24OPENAI_API_KEY=sk-????????????????????????????????????????????????
25ORGANIZATION_ID=org-????????????????????????
26ASSISTANT_ID=asst_????????????????????????
27----
28
29
302. Start the development server (defaults to port 3000) with:
31
32 npm run dev
33
34
35Now access:
36
37 http://localhost:3000/
38
39
403. To run as a production server
41
42 ./BUILD-PROD.sh
43 ./START-PROD-NOHUP.sh
44
Note: See TracBrowser for help on using the repository browser.