SwiftUI MVVM application that contains OpenAI GPT-3.5 chat bot and OpenAI DALL·E 2 system. OpenAI client providing GPT-3.5 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.
- 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
here:
apiKey = "API_KEY"