mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-29 20:20:57 +00:00
This commit is contained in:
parent
d820c2335b
commit
925d747b9d
13 changed files with 40 additions and 382 deletions
|
|
@ -28,18 +28,11 @@ export const aboutCommand: SlashCommand = {
|
|||
const cliVersion = await getCliVersion();
|
||||
const selectedAuthType =
|
||||
context.services.settings.merged.selectedAuthType || '';
|
||||
// Only show GCP Project for auth types that actually use it
|
||||
const gcpProject =
|
||||
selectedAuthType === 'oauth-gca' ||
|
||||
selectedAuthType === 'vertex-ai' ||
|
||||
selectedAuthType === 'cloud-shell'
|
||||
? process.env['GOOGLE_CLOUD_PROJECT'] || ''
|
||||
: '';
|
||||
const gcpProject = process.env['GOOGLE_CLOUD_PROJECT'] || '';
|
||||
const ideClient =
|
||||
(context.services.config?.getIdeMode() &&
|
||||
context.services.config?.getIdeClient()?.getDetectedIdeDisplayName()) ||
|
||||
'';
|
||||
const userTier = context.services.config?.getGeminiClient()?.getUserTier();
|
||||
|
||||
const aboutItem: Omit<HistoryItemAbout, 'id'> = {
|
||||
type: MessageType.ABOUT,
|
||||
|
|
@ -50,7 +43,6 @@ export const aboutCommand: SlashCommand = {
|
|||
selectedAuthType,
|
||||
gcpProject,
|
||||
ideClient,
|
||||
userTier,
|
||||
};
|
||||
|
||||
context.ui.addItem(aboutItem, Date.now());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue