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:
Vedant 2026-03-12 18:17:27 +05:30 committed by GitHub
parent 46b735ea9f
commit 40f21c08a0

View file

@ -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: {} }],