Makes thinking budget optional

This commit is contained in:
2025-12-02 10:12:22 +00:00
parent fe0e0cf672
commit 46525071e9
2 changed files with 2 additions and 1 deletions

BIN
.DS_Store vendored Normal file

Binary file not shown.

View File

@@ -198,7 +198,8 @@ impl GenerationConfigBuilder {
#[serde(rename_all = "camelCase")]
pub struct ThinkingConfig {
pub include_thoughts: bool,
pub thinking_budget: isize,
#[serde(skip_serializing_if = "Option::is_none")]
pub thinking_budget: Option<isize>,
#[serde(skip_serializing_if = "Option::is_none")]
pub thinking_level: Option<ThinkingLevel>,
}