- Add POST /v1/skills/import_github endpoint for importing skills from GitHub URLs and skills.sh URLs with subdirectory support - Implement URL parser (_parse_github_url) supporting github.com, skills.sh, /blob/ paths, /tree/ paths, and branch detection with main/master fallback - Implement secure ZIP extraction (_extract_skill_from_zip) with SKILL.md validation, path traversal protection, and 50MB size limit - Extract reusable _install_skill_from_dir helper from existing upload flow - Add frontend GitHub import UI: menu item with GithubOutlined icon, modal with URL form validation, 60s request timeout, loading state - Add httpx>=0.24.0 dependency for async HTTP downloads - Add i18n keys (en + zh) for all import-related strings - Add 18 unit tests: 9 URL parsing + 7 extraction + 2 install tests
DB-GPT-Web
DB-GPT Chat UI, LLM to Vision.
👋 Introduction
DB-GPT-Web is an Open source chat UI for DB-GPT. Also, it is a LLM to Vision solution.
DB-GPT-Web is an Open source Tailwind and Next.js based chat UI for AI and GPT projects. It beautify a lot of markdown labels, such as table, thead, th, td, code, h1, h2, ul, li, a, img. Also it define some custom labels to adapted to AI-specific scenarios. Such as plugin running, knowledge name, Chart view, and so on.
💪🏻 Getting Started
Prerequisites
Installation
Using Yarn is recommended for dependency management.
# Install dependencies
npm install
yarn install
Usage
cp .env.template .env
edit the API_BASE_URL to the real address
# development model
npm run dev
yarn dev
🚀 Use In DB-GPT
bash ../scripts/build_web_static.sh
📚 Documentation
For full documentation, visit document.
Usage
gpt-vis for markdown support. ant-design for ui components. next.js for server side rendering. @antv/g2 for charts.
License
DB-GPT-Web is licensed under the MIT License.
Enjoy using DB-GPT-Web to build stunning UIs for your AI and GPT projects.
🌟 If you find it helpful, don't forget to give it a star on GitHub! Stars are like little virtual hugs that keep us going! We appreciate every single one we receive.
For any queries or issues, feel free to open an issue on the repository.
Happy coding! 😊