feat: Update Gemini default temperature (#175)

This commit is contained in:
Kevin Lin
2025-12-10 17:21:20 -08:00
committed by GitHub
parent aeab3f11c9
commit 1575488c23
2 changed files with 5 additions and 2 deletions

View File

@@ -68,7 +68,7 @@ function buildModelSettings(
}
if (isGoogleAI) {
const googleSettings: GoogleAIModelSettings = {
const googleSettings: GoogleAIModelSettings & { temperature?: number } = {
provider_type: "google_ai",
parallel_tool_calls: true,
};
@@ -77,6 +77,9 @@ function buildModelSettings(
thinking_budget: updateArgs.thinking_budget as number,
};
}
if (typeof updateArgs?.temperature === "number") {
googleSettings.temperature = updateArgs.temperature as number;
}
return googleSettings;
}

View File

@@ -283,7 +283,7 @@
"label": "Gemini 3 Pro",
"description": "Google's smartest model",
"isFeatured": true,
"updateArgs": { "context_window": 180000 }
"updateArgs": { "context_window": 180000, "temperature": 1.0 }
},
{
"id": "gemini-flash",