Skip to content

Commit c814c9d

Browse files
Update gemini-proxy.js
1 parent 69e84f3 commit c814c9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

netlify/functions/gemini-proxy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ exports.handler = async (event, context) => {
5858
}
5959

6060
// Prepare the request to Gemini API
61-
const geminiUrl = `https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash:generateContent?key=${apiKey}`;
61+
const geminiUrl = `https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent?key=${apiKey}`;
6262

6363
const geminiRequestBody = {
6464
contents: [
@@ -117,4 +117,4 @@ exports.handler = async (event, context) => {
117117
body: JSON.stringify({ error: 'Internal server error' })
118118
};
119119
}
120-
};
120+
};

0 commit comments

Comments
 (0)