This is a web application that enables a Large Language Model (LLM) to interact with multiple tools and perform tasks using function calling. Built with Flask and with LM Studio server, this application provides an interactive chat experience with multi-tool support.
- 🐍 Python Code Execution: Run and analyze Python code directly in the chat
- 🌐 Web Search: Perform real-time web searches and extract citations
- 📚 Wikipedia Lookup: Instantly retrieve Wikipedia article introductions
- 🖼️ Image Search: Find and display images related to your queries
- 🎥 YouTube Search: Search and retrieve YouTube video information
- 🔗 Web Scraping: Extract content from specific websites
- 💬 Persistent Conversations: Save and load chat histories
- ♻️ Conversation Regeneration: Easily regenerate or delete last messages
- 🏷️ Automatic Conversation Naming: Smart, context-aware conversation titles
- 📜 Conversation Listing: Browse and manage your chat history
- 🎨 Responsive Design: Clean, modern UI with Tailwind CSS
- </> Code Highlighting: Syntax highlighting with Prism.js
- 📊 Markdown & Math Support: Render markdown and mathematical equations
- 🌈 Tool Results Visualization: Interactive, collapsible tool result sections






- Python 3.8+
- LM Studio
- Recommended Model: Qwen2.5 7B Instruct
git clone https://github.com/yossifibrahem/LLM-Tool-Calling-Web-Application.git
cd LLM-Tool-Calling-Web-Application
pip install numpy pandas sympy flask openai duckduckgo_search pytubefix youtube_transcript_api waitress
# For Windows
set FLASK_ENV=production
set FLASK_DEBUG=0
# For Unix/MacOS
export FLASK_ENV=production
export FLASK_DEBUG=0
python server.py
Double-click serverstart.bat
Open your browser and navigate to http://localhost:8080
-
Python Execution
- Execute Python code
- Perform mathematical computations
- Automate tasks
-
Web Search
- Find relevant websites
- Extract citations
- Configurable search depth
-
Wikipedia Search
- Fetch article introductions
- Quick knowledge retrieval
-
Web Scraping
- Extract content from specific URLs
- Retrieve webpage information
-
YouTube Integration
- Search videos
- Retrieve video metadata
- Get video transcriptions
-
Image Search
- Find and display images
- Configurable result count
Contributions are welcome! Please feel free to submit a Pull Request.
- LM Studio
- Open-source libraries and tools used in this project
For issues or questions, please open a GitHub issue or contact the maintainer.
This README is written Anthropic's Claude