Skip to content

Commit

Permalink
Add responseMIMEType to GenerationConfig (google-gemini#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewheard authored and G.Dev.Ssomsak committed Jun 21, 2024
1 parent 49adf92 commit 4b25d81
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Tests/GoogleAITests/GoogleAITests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ final class GoogleGenerativeAITests: XCTestCase {
topK: 16,
candidateCount: 4,
maxOutputTokens: 256,
stopSequences: ["..."])
stopSequences: ["..."],
responseMIMEType: "text/plain")
let filters = [SafetySetting(harmCategory: .dangerousContent, threshold: .blockOnlyHigh)]
let systemInstruction = ModelContent(role: "system", parts: [.text("Talk like a pirate.")])

Expand Down

0 comments on commit 4b25d81

Please sign in to comment.