mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-13 07:30:52 -07:00
Co-authored-by: gemini-cli-robot <gemini-cli-robot@google.com> Co-authored-by: joshualitt <joshualitt@google.com> Co-authored-by: Sehoon Shon <sshon@google.com> Co-authored-by: Adam Weidman <65992621+adamfweidman@users.noreply.github.com> Co-authored-by: Adib234 <30782825+Adib234@users.noreply.github.com> Co-authored-by: Jenna Inouye <jinouye@google.com>
28 lines
564 B
TypeScript
28 lines
564 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2025 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import {
|
|
type CommandContext,
|
|
CommandKind,
|
|
type SlashCommand,
|
|
} from './types.js';
|
|
|
|
export const modelCommand: SlashCommand = {
|
|
name: 'model',
|
|
description: 'Opens a dialog to configure the model',
|
|
kind: CommandKind.BUILT_IN,
|
|
autoExecute: true,
|
|
action: async (context: CommandContext) => {
|
|
if (context.services.config) {
|
|
await context.services.config.refreshUserQuota();
|
|
}
|
|
return {
|
|
type: 'dialog',
|
|
dialog: 'model',
|
|
};
|
|
},
|
|
};
|