feat: use gemini-2.0-flash-lite for highest free-tier RPD (1500/day)

This commit is contained in:
ssbg04 committed 2026-06-05 23:35:48 +08:00
1 parent 12eed10a9f
commit 6727361c6e
2 files changed
+4 -2

No files matched your search

+2 -1
View File
@@ -174,7 +174,8 @@ if (!function_exists('curl_init')) {
} }
// Call Gemini API via cURL // Call Gemini API via cURL
$url = "https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash-preview-native-audio-dialog:generateContent?key=" . urlencode($apiKey); // gemini-2.0-flash-lite: highest free-tier quota (1,500 req/day)
$url = "https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash-lite:generateContent?key=" . urlencode($apiKey);
$ch = curl_init($url); $ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
+2 -1
View File
@@ -103,7 +103,8 @@ document.addEventListener("DOMContentLoaded", () => {
} }
}; };
const url = `https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash-preview-native-audio-dialog:generateContent?key=${encodeURIComponent(config.apiKey)}`; // gemini-2.0-flash-lite: highest free-tier quota (1,500 req/day)
const url = `https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash-lite:generateContent?key=${encodeURIComponent(config.apiKey)}`;
const response = await fetch(url, { const response = await fetch(url, {
method: "POST", method: "POST",