Skip to content
This repository has been archived by the owner on Feb 20, 2024. It is now read-only.

chesnokpeter/otvetmailru_answering_machine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

otvetmailru answering machine

with chatgpt4 free

Legal notice

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.

Install

If you have problems with the installation, you can write to me, tg:@chesnokpeter

  1. Download or clone this GitHub repo

    git clone https://github.com/chesnokpeter/otvetmailru_answering_machine.git
    cd otvetmailru_answering_machine
    
  2. 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
    Your sql_queries = SELECT answer from mindsdb.gpt4otvetmailru WHERE question =

  3. Open https://cloud.mindsdb.com/editor
    Open DevTools
    Go to Application -> Cookies -> https://cloud.mindsdb.com/ -> session

  4. 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/
  5. To run, enter
    python main.py

Using

  • 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

About

otvetmailru answering machine with chatgpt4 free

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages