An Awesome Assistant App to clear all your doubts!
In this project we had to make an Assistant app with the help of OpenAI API. This app consists of an Search Bar at the bottom of the screen and returns the answer in the main view.
Screen.Recording.2023年04月06日.at.1.58.17.PM.mov
This app is made by integrating OpenAI API. It is made in Xcode with SwiftUI.
->The OpenAISwift library is used to interface with the OpenAI API, enabling the app to retrieve answers to questions asked by the user.
-> The code follows the Model-View-ViewModel (MVVM) architecture pattern, which separates the user interface (View) from the business logic (ViewModel) and the data (Model) for easier maintenance, testing, and extensibility.
-> The ProgressView component is used to display a spinning indicator while the app is waiting for the OpenAI API to return an answer.
External Package imported : OpenAISwift.
To get started with this app first ensure you are running a maOS device with Xcode installed in it.
-
Get a free API Key at [https://platform.openai.com/account/api-keys]
-
Clone the repo
git clone https://github.com/rupajsen/MyAssist
- Enter your API in
ContentView.swift
let openAI = OpenAISwift(authToken: " Enter the API Key ")
This is basically a chatbot which generates output using the OpenAI API. It has many use cases in this case I made an assistant app. It can be implemented with many such projects. Assistant app is one of the application of OpenAI.
For more info refer to :[https://openai.com/blog/openai-api]
- Rupaj Sen - CSE Student at SRM University - Rupaj Sen