laika-ti-chatgpt-react
TypeScript icon, indicating that this package has built-in type declarations

0.1.15 • Public • Published

Nest Logo

A component reactjs for Laika chat assistant connecting by socket to consume chat-gpt api rest.

NPM version Build npm-typescript License

Dependencies

React Js
Material UI
Socket IO
swiper
moment
classnames

Installation

$ npm install laika-ti-chatgpt-react

or

$ yarn add laika-ti-chatgpt-react

Usage

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>,
)

License

Laika is MIT licensed.

Author - Daniel Villanueva

Package Sidebar

Install

npm i laika-ti-chatgpt-react

Weekly Downloads

1

Version

0.1.15

License

MIT

Unpacked Size

342 kB

Total Files

117

Last publish

Collaborators

  • danieljx