XaiJu
echohive42
echohive42

patreon


Code Files for Streamlit's new chat elements with streaming responses and tiktoken conversation history limit video

his is for video: https://youtu.be/5fMqKc4Je-A

We will take a look at the new Streamlit chat elements to build conversational apps. We will also implement streaming responses using OpenAI api with gpt 3.5 turbo. You can also use gpt-4. We will implememnt a conversation history for the chatbot and use tiktoken to limit the max tokens so we dont go over the gpt's context limit. other topics include request timeout and using Tenacity for retrying functions which returns an error.   

Search 140+ echohive videos and code download links: https://www.echohive.live

Try the original GPT-4 Auto Coder app: https://gpt4autocoder.streamlit.app/  

Chat with us on Discord:  https://discord.gg/PPxTP3Cs3G  

GPT-4 web UI: https://gpt-4.up.railway.app/

Code Files for Streamlit's new chat elements with streaming responses and tiktoken conversation history limit video

More Creators