강의

멘토링

로드맵

Building a Web Chat Service with Python/Django (Feat. Channels) - Basic Course

The Channels library is a real-time messaging library developed under the philosophy of Django. Quickly master the essence of Channels through this course.

(4.7) 18 reviews

324 learners

Level Intermediate

Course period Unlimited

Python
Python
Django
Django
django-channels
django-channels
Python
Python
Django
Django
django-channels
django-channels

We share a Django sample project that leverages the OpenAI Realtime API.

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-agent

It 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

Comment