A ChatGPT native iOS SwiftUI Application

ChatGPT SwiftUI iOS App

This is a mobile native iOS Application for interacting with ChatGPT built using SwiftUI and OpenAPI API. It used the leaked model and special prompt to access ChatGPT using Open AI Completions API endpoint.

UPDATE 2 – 3 Feb 2023

It’s working again after updating to the latest model

UPDATE 1

At the time this video is published, the leaked model to access ChatGPT using Completion API endpoint had been taken down by OpenAI, so it won’t work. But most of the concept should remain the same for building the application UI and state management. When the official API is released, you can simply update to use the public model and official endpoint for ChatGPT ? I’ll also update the GitHub repo and create a follow-up video when it will be released in near future.

Video tutorial

YouTube

Requierements

  • Xcode 14
  • Register at openai.com/api
  • Create API Key
  • Paste API key in ContentView where the ChatGPTAPI instance is declared

GitHub

View Github