Skip to content

Instantly share code, notes, and snippets.

View yannklein's full-sized avatar

Yann Klein yannklein

View GitHub Profile
@yannklein
yannklein / #ChatGPT Streaming.md
Last active August 17, 2023 10:59 — forked from alexrudall/#ChatGPT Streaming.md
ChatGPT streaming with ruby-openai, Rails 7, Hotwire, Turbostream, Sidekiq and Tailwind!

How to add ChatGPT streaming to your Ruby on Rails 7 app!

This guide will walk you through adding a ChatGPT-like messaging stream to your Ruby on Rails 7 app using ruby-openai, Rails 7, Hotwire, Turbostream, Sidekiq and Tailwind. All code included below!

Alt Text

First, add the ruby-openai gem! Needs to be at least version 4. Add Sidekiq too.

batch=1299&students=Joshua,Lucas,Chris,Shiori,Duong,Giovanni,Kanae,Koga&current=Joshua,Lucas,Chris,Shiori,Duong,Giovanni,Kanae,Koga
@yannklein
yannklein / SETUP_DAY.md
Created February 17, 2021 07:10
Starting my coding journey...