Easy Plug and Play Chat Component which uses OPEN AI turbo APIs behind the scenes.
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
- This is just a basic version. More updates to come soon related to customisation and more control on your ai model.
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;
-
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