Merge pull request #2 from bizstpa/fix/gemini-pro-openrouter-typo
fix: update outdated OpenRouter gemini-3-pro-preview model ID to gemini-3.1
This commit is contained in:
2 files changed
+5
-5
No files matched your search
+4
-4
@@ -6802,7 +6802,7 @@ Correlating findings across agents, identifying patterns, producing actionable i
|
|||||||
{ id: 'openai/gpt-4o', name: 'GPT-4o', provider: 'OpenAI' },
|
{ id: 'openai/gpt-4o', name: 'GPT-4o', provider: 'OpenAI' },
|
||||||
{ id: 'openai/o1', name: 'o1', provider: 'OpenAI' },
|
{ id: 'openai/o1', name: 'o1', provider: 'OpenAI' },
|
||||||
// Google (Dec 2025)
|
// Google (Dec 2025)
|
||||||
{ id: 'google/gemini-3-pro-preview', name: 'Gemini 3 Pro', provider: 'Google' },
|
{ id: 'google/gemini-3.1-pro-preview', name: 'Gemini 3.1 Pro', provider: 'Google' },
|
||||||
{ id: 'google/gemini-3-flash-preview', name: 'Gemini 3 Flash', provider: 'Google' },
|
{ id: 'google/gemini-3-flash-preview', name: 'Gemini 3 Flash', provider: 'Google' },
|
||||||
{ id: 'google/gemini-2.5-flash', name: 'Gemini 2.5 Flash', provider: 'Google' },
|
{ id: 'google/gemini-2.5-flash', name: 'Gemini 2.5 Flash', provider: 'Google' },
|
||||||
// xAI (Dec 2025)
|
// xAI (Dec 2025)
|
||||||
@@ -17933,7 +17933,7 @@ IMPORTANT: This is an authorized security testing/red team platform. All operati
|
|||||||
const serverLLM = !!(health && health.llm && health.llm.connected);
|
const serverLLM = !!(health && health.llm && health.llm.connected);
|
||||||
const hasBackend = !!(agent || key || serverLLM);
|
const hasBackend = !!(agent || key || serverLLM);
|
||||||
if (!key && agent) { txt = '⚡ ' + agent.toUpperCase() + ' · local, no key'; color = '#00ff88'; }
|
if (!key && agent) { txt = '⚡ ' + agent.toUpperCase() + ' · local, no key'; color = '#00ff88'; }
|
||||||
else if (key) { txt = (key.startsWith('sk-ant-') ? 'Anthropic' : key.startsWith('sk-') ? 'OpenAI' : 'OpenRouter') + ' · your key'; color = '#0088ff'; }
|
else if (key) { txt = (key.startsWith('sk-ant-') ? 'Anthropic' : key.startsWith('sk-or-') ? 'OpenRouter' : key.startsWith('sk-') ? 'OpenAI' : 'OpenRouter') + ' · your key'; color = '#0088ff'; }
|
||||||
else if (serverLLM) { txt = (health.llm.provider || 'server') + ' · server key'; color = '#0088ff'; }
|
else if (serverLLM) { txt = (health.llm.provider || 'server') + ' · server key'; color = '#0088ff'; }
|
||||||
else { txt = 'none — connect agent / add key'; color = '#ff6b6b'; }
|
else { txt = 'none — connect agent / add key'; color = '#ff6b6b'; }
|
||||||
$('sysLLM').innerHTML = '<span style="color:'+color+'">'+txt+'</span>';
|
$('sysLLM').innerHTML = '<span style="color:'+color+'">'+txt+'</span>';
|
||||||
@@ -18181,7 +18181,7 @@ IMPORTANT: This is an authorized security testing/red team platform. All operati
|
|||||||
} else if (apiKey && apiKey.startsWith('sk-ant-')) {
|
} else if (apiKey && apiKey.startsWith('sk-ant-')) {
|
||||||
provider = 'anthropic';
|
provider = 'anthropic';
|
||||||
model = model.replace('anthropic/', ''); // Anthropic API doesn't use prefix
|
model = model.replace('anthropic/', ''); // Anthropic API doesn't use prefix
|
||||||
} else if (apiKey && apiKey.startsWith('sk-') && !apiKey.startsWith('sk-ant-')) {
|
} else if (apiKey && apiKey.startsWith('sk-') && !apiKey.startsWith('sk-ant-') && !apiKey.startsWith('sk-or-')) {
|
||||||
provider = 'openai';
|
provider = 'openai';
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -25085,7 +25085,7 @@ Be specific and actionable. Format as structured JSON.`;
|
|||||||
let provider = 'openrouter', model = ((typeof state !== 'undefined' && state.settings && state.settings.selectedModel) || 'anthropic/claude-sonnet-4');
|
let provider = 'openrouter', model = ((typeof state !== 'undefined' && state.settings && state.settings.selectedModel) || 'anthropic/claude-sonnet-4');
|
||||||
if (!apiKey && agent) { provider = 'local-agent'; model = agent; }
|
if (!apiKey && agent) { provider = 'local-agent'; model = agent; }
|
||||||
else if (apiKey && apiKey.startsWith('sk-ant-')) { provider = 'anthropic'; model = model.replace('anthropic/', ''); }
|
else if (apiKey && apiKey.startsWith('sk-ant-')) { provider = 'anthropic'; model = model.replace('anthropic/', ''); }
|
||||||
else if (apiKey && apiKey.startsWith('sk-')) { provider = 'openai'; }
|
else if (apiKey && apiKey.startsWith('sk-') && !apiKey.startsWith('sk-or-')) { provider = 'openai'; }
|
||||||
return { provider: provider, model: model, apiKey: apiKey || undefined };
|
return { provider: provider, model: model, apiKey: apiKey || undefined };
|
||||||
}
|
}
|
||||||
window.admiralPreviewPlan = async function(){
|
window.admiralPreviewPlan = async function(){
|
||||||
|
|||||||
+1
-1
@@ -224,7 +224,7 @@ export const AVAILABLE_MODELS: Record<LLMProvider, ModelInfo[]> = {
|
|||||||
},
|
},
|
||||||
// Google (Dec 2025)
|
// Google (Dec 2025)
|
||||||
{
|
{
|
||||||
id: 'google/gemini-3-pro-preview',
|
id: 'google/gemini-3.1-pro-preview',
|
||||||
name: 'Gemini 3 Pro',
|
name: 'Gemini 3 Pro',
|
||||||
provider: 'Google',
|
provider: 'Google',
|
||||||
contextWindow: 1000000,
|
contextWindow: 1000000,
|
||||||
|
|||||||
Reference in new issue
Block a user