A component reactjs for Laika chat assistant connecting by socket to consume chat-gpt api rest.
React Js |
Material UI |
Socket IO |
swiper |
moment |
classnames |
$ npm install laika-ti-chatgpt-react
or
$ yarn add laika-ti-chatgpt-react
Add LaikaChatGPT
to your component:
import React from 'react'
import ReactDOM from 'react-dom/client'
import { LaikaChatGPT } from 'laika-ti-chatgpt-react'
const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement)
root.render(
<React.StrictMode>
<LaikaChatGPT
host=""
user={{
id: 0,
userId: 0,
avatar: '',
email: '',
fullname: '',
tokenAuth: '',
socketId: '',
}}
/>
</React.StrictMode>,
)
Laika is MIT licensed.
Author - Daniel Villanueva