In this project we will be exploring various models that Open AI provides , Image Generation, Text Completion and Code Completion. And we'll try to find different ways to use this in real life projects.
To start with the project you need to create your own OpenAI apiKey see reference here.
after creating your own apiKey you need to replace that key in the file name AppLaunchController.swift
class AppLaunchController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// creating configurations
let apiKey = "ADD YOUR OPENAI API KEY HERE"
OpenAIWrapper.getInstance().createConfiguration(apiKey: apiKey)
// launching home view controller
let openAIWrapperInstance = OpenAIWrapper.getInstance()
let vc = HomeViewController(_openAIWrapper: openAIWrapperInstance)
let navVC = UINavigationController(rootViewController: vc)
navVC.modalPresentationStyle = .fullScreen
self.present(navVC, animated: false)
}
}
Just give it a star ⭐️ and spread the word!
© Dheeraj kumar sharma - 2024