강의

멘토링

커뮤니티

BEST
Programming

/

Web Development

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!

(4.8) 20 reviews

267 learners

Level Intermediate

Course period Unlimited

  • pyhub
Python
Python
Django
Django
django-channels
django-channels
ChatGPT
ChatGPT
Python
Python
Django
Django
django-channels
django-channels
ChatGPT
ChatGPT

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