/SwiftUI-ChatGPT-DALL-E-2

SwiftUI app integrates with OpenAI's API and features a chat with GPT-3.5 Turbo and DALL·E 2

Primary LanguageSwift

SwiftUI - ChatGPT and DALL·E 2 app

SwiftUI app integrates with OpenAI's API and features a chat with GPT-3.5 Turbo and DALL-E

mbabicz
stars forks iOS Swift Swift

ABOUT THE PROJECT

SwiftUI MVVM application that contains OpenAI GPT-3 chat bot and OpenAI DALL·E 2 system. OpenAI client providing GPT3 is implemented with this library. The DALL·E client is provided by OpenAIKit. To use OpenAI you will need to obtain your API from the OpenAI website.

INSTALLATION

  • Install all required packages (OpenAIKit, ChatGPTSwift)
  • Enter your api key in these files:
    OpenAI chat-dalle/ViewModels/DalleViewModel.swift
    OpenAI chat-dalle/ViewModels/GPT3ViewModel.swift
    in this line:
apiKey = "API_KEY"

OPENAI CHATBOT

OPENAI DALL·E 2

BUILT WITH


Swift
Firebase