Skip to content

Streaming responses with Flask, ChatGPT and Langchain

License

Notifications You must be signed in to change notification settings

DanteNoguez/FlaskGPT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FlaskGPT

Python and Javascript code to stream responses with Flask, ChatGPT and (partially) Langchain. Perhaps it's too messy (sorry), but you get the idea.

If you want to run this on a server with Gunicorn and Nginx, go to /etc/nginx/sites-available/<FlaskGPT> and set proxy_buffering off:

location / {
                proxy_buffering off;
        }

Acknowledgements

Big thank you to oneryalcin and python273 for their ideas. Shout out to David Richards.

About

Streaming responses with Flask, ChatGPT and Langchain

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published