No video

How to Stream OpenAI API Responses in a Flask App

  Рет қаралды 5,073

Pretty Printed

Pretty Printed

Күн бұрын

In this video I'll demonstrate how to stream OpenAI API responses in your Flask apps using JavaScript.
Need one-on-one help with your project? I can help through my coaching program. Learn more here: prettyprinted....
Get the code here: prettyprinted....
Github: github.com/pre...
Twitter: / pretty_printed

Пікірлер: 23
@heronfree7374
@heronfree7374 4 ай бұрын
You are a life saver with this video. Was looking for how to stream like this forever. Thanks so much!
@heronfree7374
@heronfree7374 4 ай бұрын
Thanks!
@WayneBruton
@WayneBruton 4 ай бұрын
Great video, would love to see one using the new streaming with the assistants api
@prettyprinted
@prettyprinted 4 ай бұрын
I'll look into that and I'll see what I can do. My next video should also be an OpenAI API video.
@tushaar9027
@tushaar9027 3 ай бұрын
Thanks bro,.....it really helped .....I was looking for implementation with flask..pls make another video on how to use these streaming api in python backend code with request module as well
@jamiewise2489
@jamiewise2489 15 күн бұрын
Very helpful video! I have found that when I stream output, the translation from markdown to HTML is sometimes applied incorrectly on list items (especially nested and ordered ones). I think that this could be due to some chunks lacking the full context needed for the HTML tags to be applied correctly. Do you have any ideas/ways to approach handling this?
@enriquebruzual1702
@enriquebruzual1702 5 ай бұрын
What an opportunity for HTMX
@prettyprinted
@prettyprinted 4 ай бұрын
Yup, HTMX would work well with this. Thanks for watching!
@-ankit198
@-ankit198 5 ай бұрын
I love your videos !! Can you make the same tutorial in node.js through I work in both flask and node.js but would really love to learn it in node !!
@prettyprinted
@prettyprinted 4 ай бұрын
If I made more videos, I'd definitely do a Node version, but given my output these days, it's more likely to be either Django or FastAPI. Thanks for watching though!
@ashishkingdom
@ashishkingdom 5 ай бұрын
Cool!! I couldn't get this working in FastAPI
@prettyprinted
@prettyprinted 4 ай бұрын
Thanks for watching!
@pythonantole9892
@pythonantole9892 5 ай бұрын
Good example for an HTMX use case.
@prettyprinted
@prettyprinted 4 ай бұрын
I'll consider using HTMX for this in a video. Thanks for watching!
@josklijnhout1660
@josklijnhout1660 2 ай бұрын
Hi Great video, do already have it working for the assistent api, because my heads exploding. maybe you know. I have it in react, but want it in flask java
@rangabharath4253
@rangabharath4253 5 ай бұрын
Awesome
@prettyprinted
@prettyprinted 4 ай бұрын
Thanks for watching!
@AliMughrabi
@AliMughrabi 5 ай бұрын
@prettyprinted
@prettyprinted 4 ай бұрын
Thanks for watching!
@andreialuculesei1842
@andreialuculesei1842 5 ай бұрын
May you make a video where we can do an api using async ?
@prettyprinted
@prettyprinted 4 ай бұрын
Do you mean this library with async? I don't think the streaming would well with an async approach (assuming your goal is to call the API multiple times)
@abdulnafihkt4245
@abdulnafihkt4245 5 ай бұрын
Can you do how to set up rabitmq on flask
@prettyprinted
@prettyprinted 4 ай бұрын
I'll consider that as a video. Thanks for watching!
Building a Speech Transcription App Using Flask and OpenAI
21:57
Pretty Printed
Рет қаралды 1,2 М.
Getting Started With Testing in Flask
28:31
Pretty Printed
Рет қаралды 25 М.
Fortunately, Ultraman protects me  #shorts #ultraman #ultramantiga #liveaction
00:10
WORLD'S SHORTEST WOMAN
00:58
Stokes Twins
Рет қаралды 210 МЛН
English or Spanish 🤣
00:16
GL Show
Рет қаралды 6 МЛН
Schoolboy Runaway в реальной жизни🤣@onLI_gAmeS
00:31
МишАня
Рет қаралды 3,7 МЛН
FastAPI, Flask or Django - Which Should You Use?
9:49
Tech With Tim
Рет қаралды 73 М.
You are using useFetch WRONG! (I hope you don't)
11:14
Alexander Lichter
Рет қаралды 26 М.
This AI Agent with RAG Manages MY LIFE
10:52
Cole Medin
Рет қаралды 11 М.
How to Create an Instant Search Bar With Flask and HTMX
13:13
Pretty Printed
Рет қаралды 18 М.
Have You Picked the Wrong AI Agent Framework?
13:10
Matt Williams
Рет қаралды 61 М.
Creating a Chat App With Flask-SocketIO (2023)
24:31
Pretty Printed
Рет қаралды 28 М.
Why I'm Staying Away from Crew AI: My Honest Opinion
53:48
Data Centric
Рет қаралды 25 М.
microsoft doubles down on recording your screen
10:00
Low Level Learning
Рет қаралды 65 М.
AI Expert Explains Future Programming Jobs… and Python
9:59
Travis Media
Рет қаралды 288 М.
Fortunately, Ultraman protects me  #shorts #ultraman #ultramantiga #liveaction
00:10