Merge pull request #831 from christopher-s/gemini-cli-adjustments

fix: use gemini-cli/ as model prefix instead of gc/
This commit is contained in:
Diego Rodrigues de Sa e Souza
2026-03-30 20:47:56 -03:00
committed by GitHub
5 changed files with 8 additions and 8 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

@@ -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

@@ -189,8 +189,8 @@ export const DEFAULT_PRICING = {
},
},
// Gemini CLI (gc)
gc: {
// Gemini CLI
"gemini-cli": {
"gemini-3-flash-preview": {
input: 0.5,
output: 3.0,
@@ -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",