/ChatGPT-basic-iOS-client

Source code for the ChatGPT Basic iOS Client app on YouTube

Primary LanguageSwift

ChatGPT Basic iOS Client

Note: This is a demo application for the ChatGPT API. It is not intended for production use. This is the source code for the ChatGPT Basic iOS Client app on YouTube: https://www.youtube.com/watch?v=ZGcNvMBiaEg

This is a simple iOS client application for interacting with OpenAI's GPT-43.5 based model, ChatGPT. This client allows users to send text input to the ChatGPT API and receive generated responses on their iOS devices.

Features

  • User-friendly interface for text input and output
  • Connects to the ChatGPT API to generate responses
  • Display conversation history
  • Compatible with the latest iOS versions

Requirements

  • iOS 16.0 or later
  • Xcode 14.0 or later
  • Swift 5.7 or later
  • CocoaPods for dependency management

Installation

  1. Clone the repository
  2. Open xcode project
  3. Change the API key in API.swift to your own API key

Usage

  1. Open the ChatGPT Basic iOS Client app on your device.
  2. Type your message in the text input field at the bottom of the screen.
  3. Press the "Send" button to submit your message to the ChatGPT API.
  4. The app will display the generated response from ChatGPT in the conversation history.