mirror of https://github.com/arc53/DocsGPT
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.
|
11 months ago | |
---|---|---|
.. | ||
dist | 11 months ago | |
public | 12 months ago | |
src | 11 months ago | |
README.md | 12 months ago | |
index.html | 12 months ago | |
index.ts | 12 months ago | |
package-lock.json | 11 months ago | |
package.json | 11 months ago | |
postcss.config.cjs | 12 months ago | |
tailwind.config.cjs | 12 months ago | |
tsconfig.json | 12 months ago | |
tsconfig.node.json | 12 months ago | |
vite.config.ts | 12 months 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
You can find the source code in the extensions/react-widget folder.