File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -26,22 +26,22 @@ The Google AI Swift SDK is the easiest way for Swift developers to build with th
26
26
27
27
## Usage example
28
28
29
- Add [ ` generative-ai-swift ` ] ( https://github.com/google/generative-ai-swift ) to your Xcode project
29
+ 1 . Add [ ` generative-ai-swift ` ] ( https://github.com/google/generative-ai-swift ) to your Xcode project
30
30
using Swift Package Manager.
31
31
32
- Import the ` GoogleGenerativeAI ` module
32
+ 2 . Import the ` GoogleGenerativeAI ` module
33
33
34
34
``` swift
35
35
import GoogleGenerativeAI
36
36
```
37
37
38
- Initialize the model
38
+ 3 . Initialize the model
39
39
40
40
``` swift
41
41
let model = GenerativeModel (name : " gemini-1.5-flash-latest" , apiKey : " YOUR_API_KEY" )
42
42
```
43
43
44
- Run a prompt
44
+ 4 . Run a prompt
45
45
46
46
``` swift
47
47
let cookieImage = UIImage (... )
You can’t perform that action at this time.
0 commit comments