Ovaday / planner-AI

Planner-AI is a study mentoring project that implements ChatGPT integration in Telegram via Bots. It includes several new functions that were not available on ChatGPT, such as messages classification and accepting audio messages from users.
https://planner-ai.vercel.app
1 stars 0 forks source link

Web Chat - API / Backend #79

Closed Ovaday closed 1 year ago

Ovaday commented 1 year ago

Нам нужно создать аналог чат-бота. В то время как Дима делает фронтенд, ты будешь делать бекенд для выдачи данных для коммуникации с фронтендом.

Ты будешь работать с website/views.py. Check there for ToDo's. You will need to fix them all in order to complete this task.

Firstly, launch the web server. It will allow you to see what we have. Available configured urls include at least (see vercel_app/urls.py):

Retrieval of each of those pages returns render or programmed output as a result of some view' execution.

Pre-step:

First task. Implement GET method to retrieve history of messages. Go to website/views.py -> get_messages()

Second task. Implement POST method to insert message for the user (when the user presses button 'submit' it will be invoked). Go to website/views.py -> insert_message()