From 45f2efcad365252f54457a94365d24ccaf2bcee7 Mon Sep 17 00:00:00 2001 From: Andrew Heard Date: Mon, 6 May 2024 14:09:54 -0400 Subject: [PATCH] Pick number exactly representable as a Float --- Tests/GoogleAITests/GenerationConfigTests.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/GoogleAITests/GenerationConfigTests.swift b/Tests/GoogleAITests/GenerationConfigTests.swift index 9454ee5..1ad3eaf 100644 --- a/Tests/GoogleAITests/GenerationConfigTests.swift +++ b/Tests/GoogleAITests/GenerationConfigTests.swift @@ -43,7 +43,7 @@ final class GenerationConfigTests: XCTestCase { func testEncodeGenerationConfig_allOptions() throws { let temperature: Float = 0.5 - let topP: Float = 0.95 + let topP: Float = 0.75 let topK = 40 let candidateCount = 2 let maxOutputTokens = 256