name: Add thinking_level to Gemini Python connector
about: Allow users to specify thinking levels
Gemini 3+ models support specifying thinking_level, which gives users control over their token and latency budgets.
Older models support a thinking_budget instead, but for simplicity I am proposing only support for the latest feature.
The .NET library seems to support this already:
|
[JsonPropertyName("thinking_level")] |
|
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] |
|
public string? ThinkingLevel { get; set; } |
name: Add
thinking_levelto Gemini Python connectorabout: Allow users to specify thinking levels
Gemini 3+ models support specifying
thinking_level, which gives users control over their token and latency budgets.Older models support a
thinking_budgetinstead, but for simplicity I am proposing only support for the latest feature.The .NET library seems to support this already:
semantic-kernel/dotnet/src/Connectors/Connectors.Google/GeminiThinkingConfig.cs
Lines 30 to 32 in 2a719ca