Skip to content

Commit

Permalink
example: set model for 1.5 for SystemInstruction config (#92)
Browse files Browse the repository at this point in the history
SystemInstruction isn't supported by earlier models
  • Loading branch information
eliben authored Apr 25, 2024
1 parent 2813ecb commit c147a99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion genai/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func ExampleGenerativeModel_GenerateContent_config() {
}
defer client.Close()

model := client.GenerativeModel("gemini-1.0-pro")
model := client.GenerativeModel("gemini-1.5-pro-latest")
model.SetTemperature(0.9)
model.SetTopP(0.5)
model.SetTopK(20)
Expand Down

0 comments on commit c147a99

Please sign in to comment.