Skip to content

Commit

Permalink
chore: disable showTokenUsage
Browse files Browse the repository at this point in the history
  • Loading branch information
l1shen committed Dec 9, 2024
1 parent 37555af commit 1da936b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "oopilot",
"displayName": "OOMOL Flexpilot",
"description": "Open-Source, Native and a True GitHub Copilot Alternative for VS Code",
"version": "0.1.2",
"version": "0.1.3",
"icon": "assets/logo.png",
"license": "GPL-3.0-only",
"pricing": "Free",
Expand Down Expand Up @@ -225,7 +225,7 @@
"id": "flexpilot.panel.default",
"name": "oopilot",
"fullName": "oopilot",
"description": "Ask oopilot or type / for commands",
"description": "Ask oomol or type / for commands",
"isDefault": true,
"locations": [
"panel"
Expand All @@ -235,7 +235,7 @@
"id": "flexpilot.editor.default",
"name": "oopilot",
"fullName": "oopilot",
"description": "Ask oopilot or type / for commands",
"description": "Ask oomol or type / for commands",
"isDefault": true,
"locations": [
"editor"
Expand Down
6 changes: 3 additions & 3 deletions src/inline-chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,9 @@ class InlineChatParticipant {
if (storage.workspace.get("flexpilot.inlineChat.showTokenUsage")) {
const usage = await stream.usage;
if (usage.completionTokens && usage.promptTokens) {
response.warning(
`Prompt Tokens: ${usage.promptTokens}, Completion Tokens: ${usage.completionTokens}`,
);
// response.warning(
// `Prompt Tokens: ${usage.promptTokens}, Completion Tokens: ${usage.completionTokens}`,
// );
}
}

Expand Down
8 changes: 4 additions & 4 deletions src/panel-chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,9 @@ class PanelChatParticipant {
if (storage.workspace.get("flexpilot.panelChat.showTokenUsage")) {
const usage = await stream.usage;
if (usage.completionTokens && usage.promptTokens) {
response.warning(
`Prompt Tokens: ${usage.promptTokens}, Completion Tokens: ${usage.completionTokens}`,
);
// response.warning(
// `Prompt Tokens: ${usage.promptTokens}, Completion Tokens: ${usage.completionTokens}`,
// );
}
}

Expand Down Expand Up @@ -224,7 +224,7 @@ class PanelChatParticipant {
private async provideWelcomeMessage(): Promise<vscode.ChatWelcomeMessageContent> {
return {
icon: new vscode.ThemeIcon("flexpilot-default"),
title: "Ask oopilot",
title: "Ask oomol",
message: PanelChatPrompt.getWelcomeMessage(this.session.account.label),
};
}
Expand Down

0 comments on commit 1da936b

Please sign in to comment.