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) • 441 B
text/mdx
Import the `createAiChat` and `createUnsafeChatAdapter` functions from the `@nlux/core` and `@nlux/openai` packages.
```tsx
import {createAiChat} from '@nlux/core';
import {createUnsafeChatAdapter} from '@nlux/openai';
```
The `createAiChat` function will create the main chat component that you will use to display the chat UI.<br />
The `createUnsafeChatAdapter` function is used to create an adapter for the OpenAI Chat Completion API.