From 637a61253e47780a08eba70be3491234ccdd0ad5 Mon Sep 17 00:00:00 2001 From: Peter Friese Date: Mon, 29 Apr 2024 21:04:30 +0200 Subject: [PATCH] Allow for a simpler way to set system instructions (#149) Signed-off-by: Peter Friese --- Tests/GoogleAITests/GoogleAITests.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Tests/GoogleAITests/GoogleAITests.swift b/Tests/GoogleAITests/GoogleAITests.swift index 12adf37..671beff 100644 --- a/Tests/GoogleAITests/GoogleAITests.swift +++ b/Tests/GoogleAITests/GoogleAITests.swift @@ -50,6 +50,12 @@ final class GoogleGenerativeAITests: XCTestCase { systemInstruction: systemInstruction ) + let _ = GenerativeModel( + name: "gemini-1.5-pro-latest", + apiKey: "API_KEY", + systemInstruction: "Talk like a pirate" + ) + // All arguments passed. let genAI = GenerativeModel(name: "gemini-1.5-pro-latest", apiKey: "API_KEY",