fix: use gemini-2.5-flash for google-search extension (#83)
gemini-3-flash-preview is not available on Vertex AI and has lower rate limits on the Gemini Developer API. gemini-2.5-flash is the stable model available on both Vertex AI and Gemini API.
This commit is contained in:
parent
46b735ea9f
commit
40f21c08a0
1 changed files with 1 additions and 1 deletions
|
|
@ -141,7 +141,7 @@ export default function (pi: ExtensionAPI) {
|
|||
try {
|
||||
const ai = getClient();
|
||||
const response = await ai.models.generateContent({
|
||||
model: "gemini-3-flash-preview",
|
||||
model: "gemini-2.5-flash",
|
||||
contents: params.query,
|
||||
config: {
|
||||
tools: [{ googleSearch: {} }],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue