From 92c16fdc3d7d5674ceb167b0b4f8acc85045b4ed Mon Sep 17 00:00:00 2001 From: Yoo1tic <137816438+Yoo1tic@users.noreply.github.com> Date: Mon, 28 Jul 2025 23:08:01 +0800 Subject: [PATCH] feat: update test message body configuration for Gemini API --- src/config/config.rs | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/src/config/config.rs b/src/config/config.rs index 1d11f55..d1109a7 100644 --- a/src/config/config.rs +++ b/src/config/config.rs @@ -162,15 +162,20 @@ static DEFAULT_CONFIG: LazyLock = LazyLock::new(|| KeyCheckerC // LazyLock for the test message body used in API key validation pub static TEST_MESSAGE_BODY: LazyLock = LazyLock::new(|| { serde_json::json!({ - "contents": [ + "contents": [ + { + "parts": [ { - "parts": [ - { - "text": "Hi" - } - ] + "text": "Hi" } - ] + ] + } + ], + "generationConfig": { + "thinkingConfig": { + "thinkingBudget": 0 + } + } }) });