feat(panel): 3-tier update modes, topbar update prompt, and Gemini Hydrogen & Helix support (v1.4.4)

This commit is contained in:
fish
2026-11-11 23:41:45 +09:00
parent 4f151273a8
commit 3b2f19150e
31 changed files with 1024 additions and 175 deletions
+11 -1
View File
@@ -48,6 +48,8 @@ function inferFamilyFromProviderOrKey(rawModelKey = '', modelId = '', apiProvide
combined.includes('GEMINI') ||
combined.includes('CARBON') ||
combined.includes('ARGON') ||
combined.includes('HYDROGEN') ||
combined.includes('HELIX') ||
combined.includes('FLASH') ||
combined.includes('GOOGLE')
) {
@@ -104,13 +106,21 @@ export function formatGenericModelSlug(slug = '') {
.trim()
.replace(/^session-display:/i, '');
if (!s || /^MODEL_PLACEHOLDER_/i.test(s)) return '';
const m = s.match(/^gemini-(\d+(?:\.\d+)?)-(pro|flash|argon|carbon)(?:-(lite))?$/i);
const m = s.match(
/^gemini-(\d+(?:\.\d+)?)-(pro|flash|argon|carbon|hydrogen|helix)(?:-(lite))?$/i
);
if (m) {
const ver = m[1];
const tier = m[2].charAt(0).toUpperCase() + m[2].slice(1).toLowerCase();
const lite = m[3] ? ' Lite' : '';
return `Gemini ${ver} ${tier}${lite}`;
}
const codenameMatch = s.match(/^gemini-(hydrogen|helix)$/i);
if (codenameMatch) {
const codename =
codenameMatch[1].charAt(0).toUpperCase() + codenameMatch[1].slice(1).toLowerCase();
return `Gemini ${codename}`;
}
return '';
}