Skip to content

Commit 85f93d3

Browse files
committed
Update function name for system instruction
1 parent 6f41f1d commit 85f93d3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

go/system_instruction.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
)
1010

1111
// SystemInstructions demonstrates setting a system instruction using a *genai.Content in the generation config.
12-
func SystemInstructions() error {
12+
func SystemInstruction() error {
1313
// [START system_instruction]
1414
ctx := context.Background()
1515
client, err := genai.NewClient(ctx, &genai.ClientConfig{

go/system_instruction_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import (
44
"testing"
55
)
66

7-
func TestSystemInstructions(t *testing.T) {
8-
err := SystemInstructions()
7+
func TestSystemInstruction(t *testing.T) {
8+
err := SystemInstruction()
99
if err != nil {
10-
t.Errorf("SystemInstructions returned an error.")
10+
t.Errorf("SystemInstruction returned an error.")
1111
}
1212
}

0 commit comments

Comments
 (0)