Pre-existing integration gaps surfaced when running the dev server: 1. use-connector-api.ts used bare fetch() instead of ctx-axios, so all /api/v2/serve/connectors/* requests hit the Next.js dev server (3000) instead of the backend (5670) and returned the Next 404 HTML page. Migrate every helper to axios via @/utils/ctx-axios. 2. useConfirmPolling.ts had the same bare-fetch problem; HITL confirm polling and resolve calls would never reach the backend. 3. Backend ConnectorResponse exposes connector_id while the frontend ConnectorInstance type uses id, leaving every c.id undefined. Add a normalizeConnector boundary in use-connector-api.ts so the rest of the frontend can keep using id. 4. /construct/connectors had no entry in the side-bar settings menu — users had to type the URL by hand. Add an "ApiOutlined / 连接器管理" item next to prompts in the management group. 5. Add the new `connectors` translation key to zh/en common.ts so the sidebar label resolves and TS strict-key check passes.
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! 😊