cpascoli / gpt-chatbot

React native app to talk to GPT-3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GPT3 ChatBot

A React native app to talk to GPT-3 on your iOS or Android device. Builds and runs on iOS simulator and iOS devices (Untested on Android)

Uses:

  • React Native Voice for speech to text.
  • React Native TTS or *Google Cloud Text-to-Speech * for text to speech.

The basic workflow is the following:

Speech to Text => GPT-3 completiopn request => Text to Speech

Main features

  • Dual language supports (English and italian)
  • Support React native or Google Cloud text to speech.
  • Support for open-ai chat and Q&A completions modes.

Prerequisites

  • Install XCode with command line utils
  • Add .env file with the following API keys:
OPEN_AI_API_KEY=<Your OpenAI API key>
GOOGLE_API_KEY=<Your Google Cloud Text-to-Speech API key>

Build

npm install
npx pod-install

Run on iOS Simulator

npx react-native run-ios

Install on iOS Device

  • Update Xcode project file with your Team.
  • Update bundle identifier
  • Build & Run on device

About

React native app to talk to GPT-3

License:MIT License


Languages

Language:JavaScript 48.0%Language:Java 21.2%Language:C++ 9.7%Language:TypeScript 6.2%Language:Objective-C++ 5.1%Language:Objective-C 3.3%Language:Starlark 2.7%Language:Makefile 2.1%Language:Ruby 1.8%