feat: Update Gemini default temperature (#175)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user