as-rn-ai-chat-turbo
v0.0.6
Published
Easy Plug and Play chat interface which uses Open AI'sapi behind the scenes. Just needs a token from open ai and that's it. More customisation and features in coming weeks.
Downloads
355
Maintainers
Readme
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 blueaiBubbleColor
(String) - set the user bubble color. Has a default color of light greyuserName
(String) - set the user name