Public mirror of a ChatGPT API chatbot capable of role-playing as any character. Built using React Native and Expo.
The React Sapiencial AI Public project is a versatile chatbot application using the ChatGPT API to simulate conversations and role-play with characters. Designed to run on mobile devices, this app leverages React Native for a seamless experience across both iOS and Android platforms, utilizing Expo for easy development and deployment.
Note: Support for web is secondary, the main focus is Android & iOS. Feel free to improve the code for any of the platforms as you see fit.
- 🎭 Engage in AI-driven role-playing scenarios.
- 🛠 Customize chatbot personalities to suit various characters. (WIP)
- 💾 Store conversations via Firebase login. (WIP)
- 📱 Cross-platform compatibility with iOS and Android devices.
- 🖥 Simple and intuitive user interface.
- 🌕 Dark mode support based on local system settings.
To get started with the project locally, follow these steps:
-
📥 Clone the repository:
git clone https://github.com/yourusername/react-sapiencial-ai-public.git cd react-sapiencial-ai-public
-
📦 Install dependencies:
Ensure you have Node.js and npm installed. Then, run:
npm install
-
🔑 API Keys:
Set your API Keys for Firebase and OpenAI in
firebase.js
andopenAIRequest.js
respectively.firebase.js
:// Replace with your Firebase config from Firebase Console const firebaseConfig = { apiKey: "<YOUR_API_KEY>", authDomain: "<YOUR_AUTH_DOMAIN>", projectId: "<YOUR_PROJECT_ID>", storageBucket: "<YOUR_STORAGE_BUCKET>", messagingSenderId: "<YOUR_MESSAGING_SENDER_ID>", appId: "<YOUR_APP_ID>", measurementId: "<YOUR_MEASUREMENT_ID>" };
openAIRequest.js
:// Replace with your actual OpenAI API key const openaiAPIKey = 'OPENAI_API_KEY';
-
🚀 Run the app:
Start the Expo development server:
npm start
-
📲 Open on your device:
Use the Expo Go app on your smartphone to scan the QR code or run on an emulator through the provided options after starting the server.
To use the chatbot, simply navigate through the app's user interface:
- Select a character for the chatbot to emulate.
- Begin conversing by typing messages in the chat interface.
Contributions are welcome! If you'd like to improve this project, please fork the repository and submit a pull request with your changes.
- Fork the project.
- Create your feature branch (
git checkout -b feature/AmazingFeature
). - Commit your changes (
git commit -m 'Add some AmazingFeature'
). - Push to the branch (
git push origin feature/AmazingFeature
). - Open a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
This repository is a public mirror of a private repository with some modifications, mainly the removal of sensitive information and local testing related details. The commits pushed into this repo are delivered in a 'squash'-like fashion.
🤝 Contributions are welcome, however.