You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
8 months ago
..
dist Upgrade to Vite 5 8 months ago
public react-widget 1 year ago
src Correct Sumbit to Submit 12 months ago
README.md docs: fix grammar issues 11 months ago
index.html react-widget 1 year ago
index.ts react-widget 1 year ago
package-lock.json Upgrade to Vite 5 8 months ago
package.json Upgrade to Vite 5 8 months ago
postcss.config.cjs react-widget 1 year ago
tailwind.config.cjs react-widget 1 year ago
tsconfig.json react-widget 1 year ago
tsconfig.node.json react-widget 1 year ago
vite.config.ts react-widget 1 year ago

README.md

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.