How to use Anthropic claude-3.5-sonnet with Streamlit
How to use Anthropic claude-3.5-sonnet with Streamlit
June 21, 2024
Examples
Claude API + Streamlit
https://github.com/jw782cn/Claude-Streamlit This one helped me a lot
python -m venv chatbot #create it
chatbot\Scripts\activate #activate venv (windows)
source chatbot/bin/activate #(linux)
pip install -r requirements.txt #all at once
streamlit run claude.py
that project also supports OpenAI Models
https://docs.anthropic.com/en/prompt-library/library https://docs.anthropic.com/en/docs/about-claude/models
https://console.anthropic.com/settings/plans
Getting Access to Anthropic API
Get
The Power of Claude 3 API: Building a Generative AI App with Anthropic Claude AI
https://www.youtube.com/watch?v=ximj9QWle-g
You need to take into consideration the Name as described at the Column ‘Latest 1P API model name’ in their web: https://docs.anthropic.com/en/docs/about-claude/models
claude-3-opus-20240229", “claude-3-sonnet-20240229” “claude-3.5-sonnet-20240620”
Conclusions
FAQ
Fireship