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}"`