Skip to content

Commit 1401265

Browse files
andrewheardG.Dev.Ssomsak
authored andcommitted
Make system instruction accept variadic String... (google-gemini#155)
1 parent 051e3a6 commit 1401265

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Tests/GoogleAITests/GoogleAITests.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,13 @@ final class GoogleGenerativeAITests: XCTestCase {
5353
let _ = GenerativeModel(
5454
name: "gemini-1.5-pro-latest",
5555
apiKey: "API_KEY",
56-
systemInstruction: "Talk like a pirate"
56+
systemInstruction: "Talk like a pirate."
57+
)
58+
59+
let _ = GenerativeModel(
60+
name: "gemini-1.5-pro-latest",
61+
apiKey: "API_KEY",
62+
systemInstruction: "Talk like a pirate.", "Your name is Francis Drake."
5763
)
5864

5965
// All arguments passed.

0 commit comments

Comments
 (0)