fix: use gemini-cli/ as model prefix instead of gc/

Gemini CLI clients use bare model names, not provider-prefixed IDs.
The gc/ alias was opaque — gemini-cli/ is self-documenting. Since
alias now equals provider ID, the dual-prefix duplication logic
naturally skips Gemini CLI (no duplicate gemini-cli/ entries).
This commit is contained in:
Chris Staley
2026-03-30 14:18:02 -06:00
parent df23162e9d
commit 7ab75dd15a
6 changed files with 6 additions and 7 deletions

View File

@@ -212,7 +212,7 @@ export const REGISTRY: Record<string, RegistryEntry> = {
"gemini-cli": {
id: "gemini-cli",
alias: "gc",
alias: "gemini-cli",
format: "gemini-cli",
executor: "gemini-cli",
baseUrl: "https://cloudcode-pa.googleapis.com/v1internal",

View File

@@ -1439,7 +1439,7 @@ function ComboFormModal({ isOpen, combo, onClose, onSave, activeProviders }) {
};
const FREE_STACK_PRESET_MODELS = [
{ model: "gc/gemini-3-flash-preview", weight: 0 },
{ model: "gemini-cli/gemini-3-flash-preview", weight: 0 },
{ model: "kr/claude-sonnet-4.5", weight: 0 },
{ model: "if/kimi-k2-thinking", weight: 0 },
{ model: "if/qwen3-coder-plus", weight: 0 },

View File

@@ -25,7 +25,6 @@ const FALLBACK_ALIAS_TO_PROVIDER = {
cl: "cline",
cu: "cursor",
cx: "codex",
gc: "gemini-cli",
gh: "github",
if: "iflow",
kc: "kilocode",

View File

@@ -75,9 +75,9 @@ const LITELLM_PRICING_URL =
const LITELLM_PROVIDER_MAP: Record<string, string[]> = {
openai: ["openai", "cx"],
anthropic: ["anthropic", "cc"],
vertex_ai: ["gemini", "gc"],
vertex_ai: ["gemini", "gemini-cli"],
"vertex_ai-anthropic_models": ["anthropic"],
google: ["gemini", "gc"],
google: ["gemini", "gemini-cli"],
deepseek: ["if"],
groq: ["groq"],
together_ai: ["openrouter"],

View File

@@ -1299,7 +1299,7 @@ type TokenUsage = Record<string, number | undefined>;
/**
* Get pricing for a specific provider and model
* @param {string} provider - Provider ID (e.g., "openai", "cc", "gc")
* @param {string} provider - Provider ID (e.g., "openai", "cc", "gemini-cli")
* @param {string} model - Model ID
* @returns {object|null} Pricing object or null if not found
*/

View File

@@ -6,7 +6,7 @@ export const FREE_PROVIDERS = {
qwen: { id: "qwen", alias: "qw", name: "Qwen Code", icon: "psychology", color: "#10B981" },
"gemini-cli": {
id: "gemini-cli",
alias: "gc",
alias: "gemini-cli",
name: "Gemini CLI",
icon: "terminal",
color: "#4285F4",