Пікірлер
@TopraKhann
@TopraKhann 17 күн бұрын
İ love your content❤
@swiftodyssey
@swiftodyssey 17 күн бұрын
Thank you my friend 🙂 Do subscribe if you haven't already & share with others too!
@swiftodyssey
@swiftodyssey Ай бұрын
· Get 10000 free mins with UIKits: bit.ly/3XBEuGk · Learn more about ZEGOCLOUD: bit.ly/45K5FR6 · 100% customized video call SDK: bit.ly/4clivrG · How to build iOS video call App: bit.ly/3VEHJKx ZEGOCLOUD video call SDK & API allows you to easily build your live video chat apps within minutes.
@grandeppieno
@grandeppieno Ай бұрын
Is it possible create an App Store Like App, with this metod ? 😮
@swiftodyssey
@swiftodyssey Ай бұрын
Hi ! Yeah of course. You could create a scroll/carousel of featured apps for example and on click use the zoom navigation transition to show an app details screen.
@RussChannel13
@RussChannel13 Ай бұрын
Does not lool smooth. I think using matchedgeometryeffect would be way smoother
@swiftodyssey
@swiftodyssey Ай бұрын
Its true that it's sort of 'limited' in a sense. I also love MatchedGeometry & use it extensively, however I've often run into issues when using it inside NavigationStack for instance. I'm still playing around with it for now.
@RussChannel13
@RussChannel13 Ай бұрын
@@swiftodyssey thanks for sharing new features
@swiftodyssey
@swiftodyssey Ай бұрын
@@RussChannel13 you're welcome, happy coding !
@olivier6681
@olivier6681 Ай бұрын
great game i love it, thx for all
@swiftodyssey
@swiftodyssey Ай бұрын
You're welcome ! 🙂
@Navy-729
@Navy-729 2 ай бұрын
Hi, I'm getting the error Argument type 'ModelContent.Part' does not conform to expected type 'PartsRepresentable' in the compression code. Can you pls explain why?
@swiftodyssey
@swiftodyssey 2 ай бұрын
Hi @Navy-729 ! It seems the issue occurs in the latest version of the SDK v0.5.4 as of this writing while the tutorial used v0.4.4 when published. I've fixed the issue & pushed changes to use the latest version of the SDK here: github.com/anupdsouza/ios-gemini-chat/tree/multimodal Please take the latest source code from here. Hope this helps, & do consider subscribing to my channel if you found the content useful !
@Navy-729
@Navy-729 2 ай бұрын
@@swiftodyssey thanks a lot!!!
@swiftodyssey
@swiftodyssey Ай бұрын
@@Navy-729 you're welcome!
@Navy-729
@Navy-729 Ай бұрын
@@swiftodyssey One more thing: while the code works and I tested it, the model does not keep track of the context of the previous messages and cannot build off of prior responses. I was thinking that I would append the history of each message prior to the user's message, but is there a more efficient way to do this?
@swiftodyssey
@swiftodyssey Ай бұрын
@@Navy-729 Yes, you can. You need to initialise a `Chat` instance for that. Take a look at the text-only chat with Gemini video here where I make use of it: kzfaq.info/get/bejne/jLVjjKp_l7vZeJc.html At the time of that video, the SDK wouldn't support text & media based interactions but more recently, it seems that the SDK is able to manage it. You may need to play around a bit to figure things out. Here's how Google does it using the vertex sdk but the code is almost exactly the same firebase.google.com/docs/vertex-ai/chat?platform=ios. Also take a look at my vertex ai video on how to send photo & video media from this point onwards kzfaq.info/get/bejne/l6t9erh3nLnRoqM.html. Do note that the context for the model is limited to a certain extent depending on the gemini model you use such as pro or flash. I might update this sample when I get some time. In case I do, I'll drop a line here. Hope this helps!
@yashrajjadhav9839
@yashrajjadhav9839 2 ай бұрын
hey do you know how to upload image to the firebase like i want to use a profile image and want to use that images among the leaderboard of the active users
@swiftodyssey
@swiftodyssey 2 ай бұрын
Hey! That would require working with Firebase Storage. Check out the documentation here: firebase.google.com/docs/storage/ios/upload-files . Consider subscribing to my channel if you haven't 🙂
@yashrajjadhav9839
@yashrajjadhav9839 2 ай бұрын
@@swiftodyssey Thanks , I have subscribed already
@batuhanberkertekin9029
@batuhanberkertekin9029 3 ай бұрын
How can I do the same with UI kit ? Can you also do it with UI kit ?
@swiftodyssey
@swiftodyssey 3 ай бұрын
Hi ! The gemini SDK will work the same way with UIKit since the AI request code is not UIKit dependent. Once you get the AI response, you can display it in a UITextView or UILabel connected to, for instance an IBOutlet. Is there any particular challenge that you are facing? Let me know, and do subscribe to the channel if you haven't already :)
@tunaitech
@tunaitech 3 ай бұрын
I!m getting error creating story ,please try again later why ?
@swiftodyssey
@swiftodyssey 3 ай бұрын
Hi! There are a couple of reasons for this. #1. If there was an issue getting a story from Gemini API which could be due to incorrect api key, api response limits or incorrect json data OR #2. If there was an error retrieving images for the story received in step #1. This can happen if you dont have the a proper Open AI secret key, there is a rate limit or you don't have enough credits for Dall E to generate images. I'd advise setting a breakpoint in the code and checking the execution step by step.
@tunaitech
@tunaitech 3 ай бұрын
@@swiftodyssey Hello, -[RTIInputSystemClient remoteTextInputSessionWithID:performInputOperation:] perform input operation requires a valid sessionID. inputModality = Keyboard, inputOperation = <null selector>, customInfoType = UIEmojiSearchOperations im getting this error i search this error nothin help can you help please!
@swiftodyssey
@swiftodyssey 3 ай бұрын
That is unrelated to the issue. Set a breakpoint at line #49 here github.com/anupdsouza/ios-gemini-storybook/blob/main/Storybook/Storybook/Library.swift and check the response you receive from Gemini. If all is well, you should see the story printed via the print statement at line #63. Next, see if you get an error printing at line #73 & #88. That will execute if there was an issue creating images.
@tunaitech
@tunaitech 3 ай бұрын
@@swiftodyssey thank you it’s showing green thread 1 breakpoint 49,73 what does it mean
4 ай бұрын
very good bro but Dall-E very expensive , do you have any suggestions, an api where we can create a more appropriate picture?
@swiftodyssey
@swiftodyssey 4 ай бұрын
Hello! All the good ones are paid & lack a free trial.
@Decatilinae
@Decatilinae 4 ай бұрын
wow is very interesting... thanks for sharing
@swiftodyssey
@swiftodyssey 4 ай бұрын
Thank you! Do consider subscribing to the channel !
@user-nf4mo7vd6t
@user-nf4mo7vd6t 4 ай бұрын
It seeems something has changed in their API - it worked 2 weeks ago and now stopped working. You can chat but cannot get data on any image. Do you know something about it?
@swiftodyssey
@swiftodyssey 4 ай бұрын
Hi. Something is definitely broken with the SDK when using images. I've reported an issue on the SDK page on Github. Hopefully someone from the dev team can identify the problem. I will post an update here as & when I receive it. Thanks for bringing attention to this, also don't forget to subscribe to the channel :)
@swiftodyssey
@swiftodyssey 4 ай бұрын
Hi, I tested with both the 0.4.4 version of the SDK used in this video as well as the latest 0.4.8 and I no longer see error 500 in the responses. The issue was temporarily occurring due to service related issues which are now resolved: github.com/google/generative-ai-swift/issues/122
@gorkemsaka7196
@gorkemsaka7196 4 ай бұрын
I love it! Specially the way you use for saving api key helped a lot.
@swiftodyssey
@swiftodyssey 4 ай бұрын
Glad it helped!
@user-eu6ui7wq7t
@user-eu6ui7wq7t 5 ай бұрын
"APIKey" cannot find in scope , xcode said. But I already imported googlegenerativeAI to my chatService file. private var proVisionModel = GenerativeModel(name: "gemini-pro-vision", apiKey: APIKey.default) but this code is not working. It says cannot find in scope. I am not sure whre I put my API Key. Can you explain for me ?
@swiftodyssey
@swiftodyssey 5 ай бұрын
Hi ! So there are 2 parts to this. The first is a config plist file where the key is stored and the second part is the APIKey.swift helper file which helps to read the key from the plist. I have shown this in detail in my starter video here kzfaq.info/get/bejne/jpOqppCoxpzOYmw.htmlsi=vFy-0KAK1e4lP5ix & I'd highly recommend that you begin with that video first to understand the setup better. Alternatively, you can also download the code github.com/anupdsouza/ios-gemini-chat/tree/multimodal and copy your api key in the Generative AI plist file and play around. Hope this helps 🙂
@user-eu6ui7wq7t
@user-eu6ui7wq7t 5 ай бұрын
Thank you so much buddy. Appreciated :)@@swiftodyssey
@swiftodyssey
@swiftodyssey 5 ай бұрын
@@user-eu6ui7wq7t You're welcome! Do leave a like & consider subscribing if you found the videos helpful. 🙂
@misswindy8232
@misswindy8232 5 ай бұрын
2022:Gemini horoscope 2023:Gemini Google⭐️
@farrelberwyn
@farrelberwyn 6 ай бұрын
Very creative idea!! but I have a problem related to UIScreen, it says "Cannot find 'UIScreen' in scope"
@swiftodyssey
@swiftodyssey 6 ай бұрын
Thank you! Make sure your target device is iOS Simulator/Device. Also I'd highly suggest checking out a copy of the code from the repository here github.com/anupdsouza/ios-gemini-ai-horoscope and giving it a go. If you still run into issues, create a new issue in my repository with a link to your project for me to take a look at it github.com/anupdsouza/ios-gemini-ai-horoscope/issues
@hawkeye6614
@hawkeye6614 6 ай бұрын
Damn great
@swiftodyssey
@swiftodyssey 6 ай бұрын
Thank you! Do give the video a like & subscribe if you haven't already :)
@hawkeye6614
@hawkeye6614 6 ай бұрын
:P Already did that @@swiftodyssey
@theluckyone777
@theluckyone777 6 ай бұрын
Hey, thanks for the content, really love it. Please keep it up! Subbed ツ
@swiftodyssey
@swiftodyssey 6 ай бұрын
Thank you! Appreciate it 🙂
@ionpavelescu2125
@ionpavelescu2125 7 ай бұрын
hi , youre videos are great , why do you have so little subs?
@swiftodyssey
@swiftodyssey 7 ай бұрын
Hi Ion! It’s great to hear that you enjoyed my videos so thank you for your support :) As for the number of subscribers, it’s probably because (a) my channel is fairly new & (b) the content is geared more towards stuff that I'm currently interested in, so the video topics can be quite niche. Take for example my GTA VI logo drawing video or the Scratch Card Effect video which are not quite common; unlike many other talented iOS educators with content that is focussed on more commonly researched topics. Having said that, I’m always looking for ways to improve my content and grow my channel. If you have any suggestions or ideas for future videos, please let me know! 😊
@ionpavelescu2125
@ionpavelescu2125 7 ай бұрын
very good , make videos with biger quality
@swiftodyssey
@swiftodyssey 7 ай бұрын
Thanks! Leave a like & consider subscribing if you liked this content 🙂
@Soleusgaming
@Soleusgaming 7 ай бұрын
I was literally trying for 2 hrours how it was done
@swiftodyssey
@swiftodyssey 7 ай бұрын
Hope the video helped you out! Do like the video if it did and consider subscribing to the channel
@funstudiovlog8148
@funstudiovlog8148 7 ай бұрын
great tutorial, thanks so much
@swiftodyssey
@swiftodyssey 7 ай бұрын
Glad you liked it !
@funstudiovlog8148
@funstudiovlog8148 7 ай бұрын
@@swiftodyssey Can you show how we add image in this chat please
@swiftodyssey
@swiftodyssey 7 ай бұрын
@@funstudiovlog8148 the gemini-pro model does not support text and image support at this time. For images you will need to use the gemini-pro-vision model. I will be uploading a video on that soon. Stay tuned!
@swiftodyssey
@swiftodyssey 7 ай бұрын
@funstudiovlog8148 New video with image is up! kzfaq.info/get/bejne/armVipSpmdOad5c.html
@Traoreee
@Traoreee 7 ай бұрын
Why does it use plist file to fetch the key? Does it protect our api key from api-thieves? 🤣
@swiftodyssey
@swiftodyssey 7 ай бұрын
It is just one of the ways by which you could store your API_KEY. Refer Google's documentation here: ai.google.dev/tutorials/swift_quickstart#secure-api-key . You could store and read your API key any way you want, just ensure that you don't expose it in public source control.
@swiftodyssey
@swiftodyssey 7 ай бұрын
Leave a like & consider subscribing if you liked this content 🙂
@webserveis3498
@webserveis3498 8 ай бұрын
Greaaaat sample, thanks
@swiftodyssey
@swiftodyssey 8 ай бұрын
Glad you like it!