From 72dbe114e4949bfda1bd02d32426d7453be13298 Mon Sep 17 00:00:00 2001 From: Simatwa Date: Thu, 21 Dec 2023 15:12:52 +0300 Subject: [PATCH] Make docs brief & precise --- docs/README.md | 23 +++++++++++++---------- env | 3 +-- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/docs/README.md b/docs/README.md index a63540c..9d0778b 100644 --- a/docs/README.md +++ b/docs/README.md @@ -87,19 +87,12 @@ pip install . The script utilizes [HTTP Cookies](https://en.wikipedia.org/wiki/HTTP_cookie) and [OAuth](https://en.wikipedia.org/wiki/OAuth) to justify the REST-API requests at [Openai](https://openai.com). -In order to do that, we will use the [export-cookie-for-puppeteer](https://github.com/ktty1220/export-cookie-for-puppeteer) extension to extract the cookies. +In order to do that, we will use the [export-cookie-for-puppeteer](https://github.com/ktty1220/export-cookie-for-puppeteer) extension to extract the cookies which will later on used to retrieve the OAuth. ### Procedure 1. Login to https://chat.openai.com 2. Upon successfull login, use **Export cookie JSON File Puppeteer** to export cookies. -3. On the current directory of your **terminal**,create a [`.env`](https://github.com/Simatwa/WebChatGPT/blob/main/env) file and save path to the cookie-file in the format : - -``` -openai_cookie_file= -``` - -> **Note** : It is highly recommended to export the variables from your [`.zshrc`](https://github.com/ohmyzsh/ohmyzsh) file. By doing that you are good to go. @@ -107,15 +100,25 @@ By doing that you are good to go. - Converse Interactively: ``` -$ webchatgpt interactive -P "" +$ webchatgpt interactive -C -P "" ``` - Have a quick response ``` -$ webchatgpt generate -P "" +$ webchatgpt generate -C -P "" +``` + +Alternatives to `-C ` : + +On the current directory of your **terminal**,create a [`.env`](https://github.com/Simatwa/WebChatGPT/blob/main/env) file and save path to the cookie-file in the format : + +``` +openai_cookie_file= ``` +Or simply run `$ webchatgpt ` and then fill the prompt. +
diff --git a/env b/env index a22b99b..4169182 100644 --- a/env +++ b/env @@ -1,2 +1 @@ -openai_cookie_file= -chatgpt_model= \ No newline at end of file +openai_cookie_file= \ No newline at end of file