Creating ChatGPT English Role-Play Chat Service (Feat. Python/Django Channels)
Don't just remain a ChatGPT user; transform into a GPT service developer with Django/Channels. Quickly grasp the core of Django/Channels with this lecture!
267 learners
Level Intermediate
Course period Unlimited

News
4 articles
hello.
< Create a data analysis agent chatbot in 30 minutes with Python/Django > We share the tutorial video and documentation.
Tutorial video: https://www.youtube.com/watch?v=10Fp78n3jSw
Tutorial documentation:https://django-pyhub-ai.readthedocs.io
This article contains the process of quickly creating an LLM situational chatbot and a data analysis agent chatbot using the django-pyhub-ai library that I created. This library is based on the DRY (Don't Repeat Yourself) philosophy, one of Django's core philosophies, to eliminate repetitive and cumbersome tasks and to help easily build an efficient agent-based chat service. You can implement an agent chatbot with code close to the settings without worrying about the web front end. It is based on Django Channels and HTMX, and uses Langchain, famous for its LLM library, internally.

Chatbot operation screen

I believe that by utilizing Django's models/cache/templates/storage/API/authentication, we can create more productive and valuable AI agents. We will continue to strive to deliver various Django news in the future.
Please share this widely.
I will be your Python/Django pacemaker.thank you
Python Love Room, Lee Jin-seok Dream
Infraon's <Introductory Python Django Course Starting with Django Design Philosophy> is now available for free.
https://inf.run/RDjTIf there are people around you who are interested in Django, please share it widely. However, it may be difficult for those who are new to web development. For those who are new to web development, please refer to the daily coding
I recommend that you study the YouTube lectures first.
https://www.youtube.com/playlist?list=PLuHgQVnccGMDLp4GH-rgQhVKqqZawlNwGthank you. :-)
A little while ago, a video testing the OpenAI Realtime API was uploaded to Teddy Note YouTube .
He showed me the code from the https://github.com/langchain-ai/react-voice-agent repository as is. The code in this repository is written based on Starlette and langchain.
I ported this to django/channels + langchain version. ;-)
https://github.com/pyhub-kr/pyhub-django-react-voice-agentIt is functionally identical to the react-voice-agent project. Just set the OPENAI_API_KEY environment variable and access the http://localhost:8000 page to make it work.
If you haven't seen the Teddy Note video above, watch it first, then try turning the code.
I used AsyncWebsocketConsumer from django channels.
#openai #realtime
Upstage has released an open beta version of the openai api compatible solar api. It looks like it will be free to use until the end of March 2024. It seems to run faster than gpt-3.5-turbo.
After installing the openai library, it works well by simply changing the api_key, base_url, and model in the code utilizing gpt-3.5-turbo.
Related official documentation: https://developers.upstage.ai/tutorials/chatbot (based on openai library version 1.x)
The openai library has slightly changed its API structure since version 1.x. For more information about this, see the previous news.
https://www.inflearn.com/news/1080266
Please refer to .
Upstage solar api is
If you are interested, please take a look at https://console.upstage.ai to sign up.
Upstage CEO. Kim Seong-hoon's Facebook post

thank you
Python Love Room, Lee Jin-seok Dream

