Тёмный

How to Stream OpenAI API Responses in a Flask App 

Pretty Printed
Подписаться 96 тыс.
Просмотров 6 тыс.
50% 1

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

Опубликовано:

 

15 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 23   
@heronfree7374
@heronfree7374 5 месяцев назад
You are a life saver with this video. Was looking for how to stream like this forever. Thanks so much!
@heronfree7374
@heronfree7374 5 месяцев назад
Thanks!
@WayneBruton
@WayneBruton 5 месяцев назад
Great video, would love to see one using the new streaming with the assistants api
@prettyprinted
@prettyprinted 5 месяцев назад
I'll look into that and I'll see what I can do. My next video should also be an OpenAI API video.
@jamiewise2489
@jamiewise2489 Месяц назад
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?
@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
@enriquebruzual1702
@enriquebruzual1702 5 месяцев назад
What an opportunity for HTMX
@prettyprinted
@prettyprinted 5 месяцев назад
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 5 месяцев назад
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!
@josklijnhout1660
@josklijnhout1660 3 месяца назад
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
@pythonantole9892
@pythonantole9892 5 месяцев назад
Good example for an HTMX use case.
@prettyprinted
@prettyprinted 5 месяцев назад
I'll consider using HTMX for this in a video. Thanks for watching!
@ashishkingdom
@ashishkingdom 5 месяцев назад
Cool!! I couldn't get this working in FastAPI
@prettyprinted
@prettyprinted 5 месяцев назад
Thanks for watching!
@andreialuculesei1842
@andreialuculesei1842 5 месяцев назад
May you make a video where we can do an api using async ?
@prettyprinted
@prettyprinted 5 месяцев назад
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)
@rangabharath4253
@rangabharath4253 5 месяцев назад
Awesome
@prettyprinted
@prettyprinted 5 месяцев назад
Thanks for watching!
@abdulnafihkt4245
@abdulnafihkt4245 5 месяцев назад
Can you do how to set up rabitmq on flask
@prettyprinted
@prettyprinted 5 месяцев назад
I'll consider that as a video. Thanks for watching!
@AliMughrabi
@AliMughrabi 5 месяцев назад
@prettyprinted
@prettyprinted 5 месяцев назад
Thanks for watching!
Далее
FastAPI, Flask or Django - Which Should You Use?
9:49
Real respect sig
00:48
Просмотров 1,5 млн
Schedule Automatic Tasks in Flask with APScheduler
10:57
Have You Picked the Wrong AI Agent Framework?
13:10
Просмотров 66 тыс.
DataStreaming with LangChain & FastAPI
8:51
Просмотров 17 тыс.
Authenticating a Flask API Using JSON Web Tokens
20:33
Просмотров 174 тыс.
Online Web Chat in Python With Flask
17:16
Просмотров 78 тыс.