Skip to content

Claude.ai message limits are super low (at least now) - here is a chainlit app to chat with Claude Sonnet 3.5 (or any other Claude model) via API without message limits.

Notifications You must be signed in to change notification settings

Twist333d/chainlit-claude

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🤖 chainlit-claude 💬

This project demonstrates how to use Claude 3.5 Sonnet model with Chainlit for conversational AI and prompt caching capabilities.

✨ Features

  • Prompt Caching: Leverage Claude's prompt caching feature to save on token usage and reduce latency, especially in extended conversations.
  • Performance Insights: Get detailed metrics on each interaction, including time taken, token usage, and caching efficiency.
  • Streaming output: Support streaming of response to improve the UX.
  • FireCrawl web search (NEW) Support intelligent formulating of queries and searching for info on the web.
  • Support for image uploads (NEW) Support for image uploads (JPEG, PNG, GIF, or WebP), max of 20 images per request, limitations of Anthropic API apply.

🚀 Getting Started

  1. Clone the Repository:

    git clone https://github.com/your-username/chainlit-claude.git
    cd chainlit-claude 
  2. Install Dependencies (Poetry):

    poetry install
  3. Set up Environment Variables: Create a .env file in the root directory. Add your API keys:

    ANTHROPIC_API_KEY=your_api_key
    FIRECRAWL_API_KEY=your_api_key
  4. Run the Application:

    chainlit run app.py

This will start the Chainlit server, and you can access the application in your web browser.

⚙️ Usage

Once the application is running, you can start interacting with Claude 3.5 Sonnet through the Chainlit interface.

Type your messages in the chat input. The application will send your message to Claude and display its response. After each response, you'll see performance metrics, including prompt caching statistics. If user request requires additional information -> it intelligently formulates a query and searches on the web.

🚧 Open Issues

  • None so far -> please report one, if you spot it

🙏 Acknowledgments

Anthropic for developing the Claude language model. Firecrawl for creating a superb LLM search. Chainlit for providing the conversational AI framework.

About

Claude.ai message limits are super low (at least now) - here is a chainlit app to chat with Claude Sonnet 3.5 (or any other Claude model) via API without message limits.

Resources

Stars

Watchers

Forks

Languages