This project is for educational purposes only. It is simply a small personal project.
Please note the following:
-
Liability: Users are solely responsible for their actions and any consequences that may ensue.
-
For educational purposes only: This repository and its contents are provided strictly for educational purposes.
-
Indemnification: Users agree to indemnify, defend and hold the author of this repository harmless from any claim, liability, damage, loss or expense, including legal fees, arising from or in any way connected with the use or misuse of this repository, its contents.
-
Updates and Changes: The author reserves the right to change, update or delete any content, information or functions in this repository at any time without prior notice. Users are responsible for regularly reviewing the content and any changes made to this repository.
By using this repository or any code associated with it, you agree to these terms. The author is not responsible for any copies, forks or re-downloads made by other users.
If you have problems with the installation, you can write to me, tg:@chesnokpeter
-
Download or clone this GitHub repo
git clone https://github.com/chesnokpeter/otvetmailru_answering_machine.git cd otvetmailru_answering_machine
-
Sign up: https://mindsdb.com/
Your plan: demo
Log into the database
We make a request:CREATE MODEL mindsdb.gpt4otvetmailru PREDICT answer USING engine = 'openai', max_tokens = 1000, model_name = 'gpt-4', prompt_template = '{{question}} Отвечай кратко.'
RUN this request
Yoursql_queries
=SELECT answer from mindsdb.gpt4otvetmailru WHERE question =
-
Open https://cloud.mindsdb.com/editor
Open DevTools
Go to Application -> Cookies -> https://cloud.mindsdb.com/ ->session
-
Open config.json in the repository on your machine
{ "mindsdb" : [ { "session" : "", "sql_queries" : "" } ], "mailru" : [ { "login" : "", "password" : "" } ] }
Key Description session Your session via cookie sql_queries Your SQL queries to the database login Your login to https://otvet.mail.ru/ password Your password to https://otvet.mail.ru/ -
To run, enter
python main.py
-
When in use, the
textdata/answers.txt
file will record the questions, as well as the answer, in the format========== date: question date title: question title description: question description url: question url answer: answer to question from gpt4 status: answer added/dont added ==========
-
When in use, the
textdata/errors.txt
file will record the errors -
INDICATE IN THE ANSWER THAT THE ANSWER WAS GENERATED BY CHATGPT!
I used the library otvetmailru, its creator: https://github.com/kalinochkind/otvetmailru