/AICat

Multiplatform Client for ChatGPT using SwiftUI, support iOS, iPadOS & MacOS

Primary LanguageSwift

AICat - Apple Platform Client for ChatGPT

This project demonstrates how to develop a cross-platform Apple app from scratch using SwiftUI, including network requests, database storage, and in-app purchases. The project was written in a relatively short amount of time, so if you have any questions or suggestions for improvement, please feel free to provide feedback.

Build

  • Xcode 14.3 (Not verified on other version)
  • Create Credential.Swift
    // for App Crash Tracking
    let appCenterSecretKey = "{Your AppCenter App Secret}"
    // for in app purchase
    let appHudKey = "{Your AppHud App Key}"
    // open ai
    let openAIKey = "{Your OpenAI API Key}"
    let proxyAPIHost = "https://api.openai.com"
    let monthlyPremiumId = "monthly premium subscription product id"
    let catFoodId = "consumable in-app purchase product id"

Buy Me A Coffee

Features

  • Features of ChatGPT Web App
  • Create Chat with prompt
  • Command mode inspired by Telegram
  • Custom request parameters for every conversation
  • CRUD for Chat and Messages
  • Use your own OpenAI API Key
  • Custom API Host
  • Share message as image
  • Export messages as Markdown
  • New session in Conversation when ContextMessages count more than 0
  • iCloud Sync
  • Copy code block

the command mode depends on chats with prompt, creating more prompts is important

Requirements

  • iOS, iPadOS 15 and later version
  • macOS 13 and later version

How to use

  • For people who have OpenAI account, you can input OpenAI API Key to access all features(called developer mode)
  • For people who do not have OpenAI API key, subscribe monthly premium to access all features
  • Long press version number text for more than 5s in bottom of Settings page to switch developer mode

Screenshots

  • iOS

  • MacOS

Links