Files
DocsGPT/extensions/react-widget
Alex 75704899a7 Merge pull request #395 from arc53/dependabot/npm_and_yarn/extensions/react-widget/postcss-8.4.31
Bump postcss from 8.4.29 to 8.4.31 in /extensions/react-widget
2023-10-05 15:35:48 +01: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
2023-09-12 14:01:12 +01:00
2023-09-12 15:41:05 +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
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.