UNPKG

remix-nlux

Version:

Remix IDE NLUX integration. Remix IDE is the leading IDE for building and deploying smart contracts on Ethereum. NLUX is a JavaScript and React library for building conversational AI experiences.

10 lines (7 loc) 385 B
Import the `useUnsafeChatAdapter` hook and the `AiChat` component in your JSX file: ```tsx import {AiChat} from '@nlux/react'; import {useUnsafeChatAdapter} from '@nlux/openai-react'; ``` The `AiChat` component is the main chat component that you will use to display the chat UI.<br /> The `useUnsafeChatAdapter` hook is used to create an adapter for the OpenAI Chat Completion API.