Files
DocsGPT/extensions/react-widget
Eng Zer Jun 374b665089 Upgrade to Vite 5
This commit upgrades vite to the latest version 5, and also updates the
vite plugins to the latest version.

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2024-01-19 21:34:28 +08:00
..
2024-01-19 21:34:28 +08:00
2023-09-12 14:01:12 +01:00
2023-10-03 22:26:53 +05:30
2023-09-12 14:01:12 +01:00
2023-09-12 14:01:12 +01:00
2024-01-19 21:34:28 +08:00
2024-01-19 21:34:28 +08:00
2023-09-12 14:01:12 +01:00
2023-11-01 01:04:40 +05:30
2023-09-12 14:01:12 +01:00
2023-09-12 14:01:12 +01:00
2023-09-12 14:01:12 +01:00
2023-09-12 14:01:12 +01:00

DocsGPT react widget

This widget will allow you to embed a DocsGPT assistant in your React app.

Installation

npm install  docsgpt

Usage

    import { DocsGPTWidget } from "docsgpt";
    import "docsgpt/dist/style.css";

    const App = () => {
      return <DocsGPTWidget />;
    };

To link the widget to your api and your documents you can pass parameters to the component.

    import { DocsGPTWidget } from "docsgpt";
    import "docsgpt/dist/style.css";

    const App = () => {
      return <DocsGPTWidget apiHost="http://localhost:7001" selectDocs='default' apiKey=''/>;
    };

Our github

DocsGPT

You can find the source code in the extensions/react-widget folder.