From 950e5c1784b8a2fda0f4161709fef6921684d730 Mon Sep 17 00:00:00 2001 From: Danil Nikolaev Date: Tue, 20 Jan 2026 08:39:21 +0300 Subject: [PATCH] fix match --- src/commands/gemini-set-model.ts | 2 +- src/commands/mistral-set-model.ts | 2 +- src/commands/ollama-set-model.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/gemini-set-model.ts b/src/commands/gemini-set-model.ts index 8ee2c52..f04487f 100644 --- a/src/commands/gemini-set-model.ts +++ b/src/commands/gemini-set-model.ts @@ -14,7 +14,7 @@ export class GeminiSetModel extends ChatCommand { requirements = Requirements.Build(Requirement.BOT_CREATOR); async execute(msg: Message, match?: RegExpExecArray | null): Promise { - const newModel = match?.[1]; + const newModel = match?.[3]; Environment.setGeminiModel(newModel || Environment.GEMINI_MODEL); const text = newModel ? `Выбрана модель "${newModel}"` diff --git a/src/commands/mistral-set-model.ts b/src/commands/mistral-set-model.ts index 24ad6ac..77b87e4 100644 --- a/src/commands/mistral-set-model.ts +++ b/src/commands/mistral-set-model.ts @@ -14,7 +14,7 @@ export class MistralSetModel extends ChatCommand { requirements = Requirements.Build(Requirement.BOT_CREATOR); async execute(msg: Message, match?: RegExpExecArray | null): Promise { - const newModel = match?.[1]; + const newModel = match?.[3]; Environment.setMistralModel(newModel || Environment.MISTRAL_MODEL); const text = newModel ? `Выбрана модель "${newModel}"` diff --git a/src/commands/ollama-set-model.ts b/src/commands/ollama-set-model.ts index 44ee691..aae73b1 100644 --- a/src/commands/ollama-set-model.ts +++ b/src/commands/ollama-set-model.ts @@ -14,7 +14,7 @@ export class OllamaSetModel extends ChatCommand { requirements = Requirements.Build(Requirement.BOT_CREATOR); async execute(msg: Message, match?: RegExpExecArray | null): Promise { - const newModel = match?.[1]; + const newModel = match?.[3]; Environment.setOllamaModel(newModel || Environment.OLLAMA_MODEL); const text = newModel ? `Выбрана модель "${newModel}"`