as-rn-ai-chat-turbo

0.0.6 • Public • Published

AS React Native AI Chat Bot Turbo

Easy Plug and Play Chat Component which uses OPEN AI turbo APIs behind the scenes.

Installation

npm install as-rn-ai-chat-turbo
  • Just needs open AI api key for gpt-3.5-turbo from Open AI api.
  • Future releases will have an option to choose your gpt model

Future releases

  • This is just a basic version. More updates to come soon related to customisation and more control on your ai model.

Example usage

import React from 'react';
import { apiKey } from './src/constants';
import { SafeAreaView } from 'react-native';
import  AIChat from 'as-rn-ai-chat-turbo'

const App = () => {
  return <SafeAreaView style={ {flex: 1} }>
      <AIChat
      apiToken={apiKey}
      userBubbleColor='orange'
      aiBubbleColor='green'
      />
    </SafeAreaView>
};

export default App;

Props

  • apiToken (String) - open AI api key for gpt-3.5-turbo from Open AI api. This is very important as it won't work without it.
  • userBubbleColor (String) - set the user bubble color. Has a default color of blue
  • aiBubbleColor (String) - set the user bubble color. Has a default color of light grey
  • userName (String) - set the user name

Package Sidebar

Install

npm i as-rn-ai-chat-turbo

Weekly Downloads

44

Version

0.0.6

License

ISC

Unpacked Size

5.32 kB

Total Files

5

Last publish

Collaborators

  • abdur_developer