Skip to content

Commit

Permalink
Update Google AI tutorial (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
svilupp authored Mar 21, 2024
1 parent 3b30d66 commit 2509e0b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion docs/src/examples/working_with_google_ai_studio.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ We'll need `GoogleGenAI.jl` package:
using Pkg; Pkg.add(url="https://github.com/tylerjthomas9/GoogleGenAI.jl/")
````

> [!WARNING]
> This tutorial is DISABLED FOR NOW, because GoogleGenAI.jl is NOT a registered package yet and, hence, we cannot have an extension for it.
>
> If you want to use Google models, you need to install GoogleGenAI and add the following file to `[extensions]` section in Project.toml:
> `GoogleGenAIPromptingToolsExt = ["GoogleGenAI"]
>
> Save the Project.toml changes and restart Julia. You can now use GoogleGenAI models with PromptingTools as shown below.
You can now use the Gemini-1.0-Pro model like any other model in PromptingTools. We **only support `aigenerate`** at the moment.

Let's import PromptingTools:
Expand All @@ -38,7 +46,7 @@ AIMessage("Hi there! As a helpful AI assistant, I'm here to help you with any qu
You could achieve the same with a string macro (notice the "gemini" at the end to specify which model to use):

````julia
@ai"Say hi!"gemini
ai"Say hi!"gemini
````

### Advanced Prompts
Expand Down

0 comments on commit 2509e0b

Please sign in to comment.