diff --git a/src/commands/reload.ts b/src/commands/reload.ts index d260a51..1508b1a 100644 --- a/src/commands/reload.ts +++ b/src/commands/reload.ts @@ -8,7 +8,7 @@ import { storage } from "../storage"; export class ReloadCommand { static register() { storage.getContext().subscriptions.push( - vscode.commands.registerCommand("flexpilot.reload", () => { + vscode.commands.registerCommand("oopilot.reload", () => { InlineChatParticipant.reload(); PanelChatParticipant.reload(); events.fire({ diff --git a/src/panel-chat.ts b/src/panel-chat.ts index 5aaceda..fd9192d 100644 --- a/src/panel-chat.ts +++ b/src/panel-chat.ts @@ -223,8 +223,8 @@ class PanelChatParticipant { private async provideWelcomeMessage(): Promise { return { icon: new vscode.ThemeIcon("flexpilot-default"), - title: "Ask Flexpilot", - message: PanelChatPrompt.getWelcomeMessage("anonymous"), + title: "Ask OO-Pilot", + message: PanelChatPrompt.getWelcomeMessage(this.session.account.label), }; } diff --git a/src/providers/mistral-ai.ts b/src/providers/mistral-ai.ts index 1aeaf51..a94f0b8 100644 --- a/src/providers/mistral-ai.ts +++ b/src/providers/mistral-ai.ts @@ -124,7 +124,7 @@ export class MistralAICompletionModelProvider extends ICompletionModelProvider { * @returns {Promise} A promise that resolves when the provider is initialized. */ async initialize(): Promise { - this.tokenizer = await Tokenizers.get(this.config.model); + // this.tokenizer = await Tokenizers.get(this.config.model); } /** @@ -132,20 +132,14 @@ export class MistralAICompletionModelProvider extends ICompletionModelProvider { * @param {string} text - The text to encode. * @returns {Promise} A promise that resolves to an array of token ids. */ - readonly encode = async (text: string): Promise => { - logger.debug(`Encoding text: ${text.substring(0, 50)}...`); - return this.tokenizer.encode(text, false); - }; + readonly encode = undefined; /** * Decodes the given tokens into text. * @param {number[]} tokens - The tokens to decode. * @returns {Promise} A promise that resolves to the decoded text. */ - readonly decode = async (tokens: number[]): Promise => { - logger.debug(`Decoding ${tokens.length} tokens`); - return this.tokenizer.decode(tokens, false); - }; + readonly decode = undefined; /** * Invokes the Mistral AI completion model.