DocsGPT/extensions/react-widget
dependabot[bot] f8ac5e0af3
Bump vite from 4.4.9 to 4.4.12 in /extensions/react-widget
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 4.4.9 to 4.4.12.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v4.4.12/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v4.4.12/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-06 01:52:56 +00:00
..
dist Remove unneeded duplicate words 2023-10-07 00:11:03 +10:00
public react-widget 2023-09-12 14:01:12 +01:00
src Correct Sumbit to Submit 2023-10-03 22:26:53 +05:30
index.html react-widget 2023-09-12 14:01:12 +01:00
index.ts react-widget 2023-09-12 14:01:12 +01:00
package-lock.json Bump vite from 4.4.9 to 4.4.12 in /extensions/react-widget 2023-12-06 01:52:56 +00:00
package.json Bump vite from 4.4.9 to 4.4.12 in /extensions/react-widget 2023-12-06 01:52:56 +00:00
postcss.config.cjs react-widget 2023-09-12 14:01:12 +01:00
README.md docs: fix grammar issues 2023-11-01 01:04:40 +05:30
tailwind.config.cjs react-widget 2023-09-12 14:01:12 +01:00
tsconfig.json react-widget 2023-09-12 14:01:12 +01:00
tsconfig.node.json react-widget 2023-09-12 14:01:12 +01:00
vite.config.ts react-widget 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.