Auto-deploy: 2026-05-18 00:20:53
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
// background.js — Service Worker
|
// background.js — Service Worker
|
||||||
// Handles all Gemini API calls (avoids CORS issues from content scripts)
|
// Handles all Gemini API calls (avoids CORS issues from content scripts)
|
||||||
|
|
||||||
const GEMINI_MODEL = 'gemini-2.5-flash';
|
const GEMINI_MODEL = 'gemini-flash-lite-latest';
|
||||||
const GEMINI_URL = `https://generativelanguage.googleapis.com/v1beta/models/${GEMINI_MODEL}:generateContent`;
|
const GEMINI_URL = `https://generativelanguage.googleapis.com/v1beta/models/${GEMINI_MODEL}:generateContent`;
|
||||||
|
|
||||||
// ─── Message listener ────────────────────────────────────────────────────────
|
// ─── Message listener ────────────────────────────────────────────────────────
|
||||||
|
|||||||
@@ -48,8 +48,8 @@ if (empty($apiKey)) {
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
// gemini-2.5-flash is required for reliable structured JSON output (list_analysis)
|
// Standardized on gemini-flash-lite-latest due to quota limits
|
||||||
$model = "gemini-2.5-flash";
|
$model = "gemini-flash-lite-latest";
|
||||||
$geminiUrl = "https://generativelanguage.googleapis.com/v1beta/models/{$model}:generateContent?key=" . $apiKey;
|
$geminiUrl = "https://generativelanguage.googleapis.com/v1beta/models/{$model}:generateContent?key=" . $apiKey;
|
||||||
|
|
||||||
// ==========================================
|
// ==========================================
|
||||||
|
|||||||
Reference in New Issue
Block a user