Skip to content

Commit

Permalink
Allow for a simpler way to set system instructions (google-gemini#149)
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Friese <[email protected]>
  • Loading branch information
peterfriese authored and G.Dev.Ssomsak committed Jun 21, 2024
1 parent 7090497 commit 637a612
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Tests/GoogleAITests/GoogleAITests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 637a612

Please sign in to comment.