NLUX
and ChatGPT
- React JS ⚛️
- JavaScript 🟨
How to connect NLUX
to ChatGPT
NLUX
provides a built-in adapter for connecting to OpenAI's API, which you can use to connect to ChatGPT.
Installation
- NPM
- Yarn
- PNPM
npm install @nlux/openai-react
yarn add @nlux/openai-react
pnpm add @nlux/openai-react
Usage
import {useUnsafeChatAdapter} from '@nlux/openai-react';
const Component = () => {
const adapter = useUnsafeChatAdapter({
[option name]: <option value>,
});
}
How to connect NLUX
to ChatGPT
NLUX
provides a built-in adapter for connecting to OpenAI's API, which you can use to connect to ChatGPT.
Installation
- NPM
- Yarn
- PNPM
npm install @nlux/openai
yarn add @nlux/openai
pnpm add @nlux/openai
Usage
import {createUnsafeChatAdapter} from '@nlux/openai';
const adapter = createUnsafeChatAdapter()
.withApiKey('YOUR_API_KEY')
.with[Option Name](<Option Value>);