Skip to content

sherksiva/Open-AI-Chat-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ReactJS Chatbot OpenAI

This simple ReactJS project which created with use of OpenAI API. For your reference.

Chat box image

If you getting access error, you can find out below screenshot.

Reference image error

If you need it feel free to clone it and use it.

Installation

git clone https://github.com/sherksiva/Open-AI-Chat-Bot
cd Open-AI-Chat-Bot
npm install

Components

Go to the src folder and copy the components folder and its contents to your react project.

Import Components

import ReactAiBot from './components/ReactAiBot';

Use like below

<ReactAiBot apiKey="your apiKey" />

Code Example (App.js)

import ReactAiBot from './components/ReactAiBot';
import './App.css';

function App() {
  return (
    <>
      <ReactAiBot apiKey="your apiKey" />
    </>
  );
}

export default App;