Skip to content

In this repo we will be exploring various models that Open AI provides , Image Generation , Text Completion and Code Completion.

Notifications You must be signed in to change notification settings

dheerajghub/OpenAI-Demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenAI-Demo

What this project is all about?

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)
        
    }
    
}

Do you like my work? Go Spread a word!

Just give it a star ⭐️ and spread the word!

Credits

© Dheeraj kumar sharma - 2024

About

In this repo we will be exploring various models that Open AI provides , Image Generation , Text Completion and Code Completion.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published