Building ChatGPT for iOS (SwiftUI)

preview_player
Показать описание
Learn how to build your own AI assistant on your iOS device using the power of SwiftUI and ChatGPT! In this step-by-step tutorial, I'll show you how to create a fully functional AI assistant that can understand and respond to natural language.

I'll be uploading the source code to my Patreon, and sharing updates through my newsletter.

Socials:

#chatgpt #openai #ai
Рекомендации по теме
Комментарии
Автор

You should continue posting tutorials. Your pace and explanations are great and entertaining to watch

somethingedgar
Автор

MAZEN! You're back! Good to see you man. Miss ya!

DDSTV
Автор

Thanks for this legendary tutorial. Can't believe I stumble up on this GOD level tutorial.

anmxdev
Автор

Great Vid!

How would I go about editing the LLM. As in, make it respond with fewer words or Focus on specific data?

bavalos
Автор

outstanding! Thank you! I'm new to app development but was able to follow you. Thanks! If you could do a video showing us how to either send the result from ChatGPT or copy so I can past into another app, or better yet, email it.

sigmapifsc
Автор

I got an error on the preview saying that I'm missing the any cancellable parameter. Xcode 15.X

Loved the tutorial by the way.

onecaribbean
Автор

Stuck in around 12:30 with error in line 14 : Incorrect argument label in call (have 'model:prompt:temperature:', expected 'mode:prompt:temperature:') Replace Model with Mode. But it should be "Model", right?

curiosityventures
Автор

wow amazing but why I have not yet followed my SwiftUI friend. BTW subscribed for more cool and new things

jemmytech
Автор

Hey Mazen,
Hope that you must be doing great

Your teaching skills are very Impressive but I got an error with cancellables in my #preview contentview it's having a missing argument for cancellables how can I get it solved please let me know.

Thankyou

babarmughal
Автор

can we use URLsession/Combine for calling the API?

jemmytech
Автор

you exceeded your current quota, please check your plan and billing details?

jemmytech
Автор

Excellent presenting skills mate! Nice gear too, especially your mic. I hope to see more tutorials. 2 questions:
I am Still in the process of mastering SwiftUI. I was wondering, at 2:29 we added a chatMessages State but didn't declare it as private, any particular reason for that?
Any plans to introduce a paid model for SwiftUI? If so, I might be interested.

Have a great one!

athensrhodos
Автор

Hey Mazen,

This tutorial is excellent, buddy. Thanks for taking the time to post it.

I'm getting a single error regarding <AnyCancellable> and wondered if you could help?

Error is: Expected type. Inset '<#type#>

I've followed the code exactly as you've put, line 16 in ContentView is:

@State var cancellables: = Set<AnyCancellable>()

Any ideas or suggestions on how to get across the line would be very much appreciated.

Thanks.

acadia
Автор

Great Tutorial! How do I adjust it to work with the new gpt-3.5-turbo model?

TazG
Автор

Hi Mazen, I followed the steps. No issues code wise, but the app doesn't respond. Any ideas? 
 
Connection 1: received failure notification
Connection 1: failed to connect
Connection 1: encountered error

DDSTV
Автор

Thank you, but without using stream, it takes a long time to return the data.

emiria
Автор

Did you have to do anything to get relevant results from this API?

patrickm
Автор

Hi, Great video, it is very helpful. Could you link me to the source code, I am having problems writing the code and having access to the source code would be great! Thanks.

josuesaavedra
Автор

Just finished this tutorial. Im using the simulator, I get no response from chatgpt. I see people other people have had the same issue. Do we know why this happened? Im getting no errors but it doesnt seem like an API call is happening.

joshuagibson-bascombe
Автор

Nice video boss, but what about for android app

onellnellstine