fix match

This commit is contained in:
2026-01-20 08:39:21 +03:00
parent c7df7f210b
commit 950e5c1784
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ export class GeminiSetModel extends ChatCommand {
requirements = Requirements.Build(Requirement.BOT_CREATOR);
async execute(msg: Message, match?: RegExpExecArray | null): Promise<void> {
const newModel = match?.[1];
const newModel = match?.[3];
Environment.setGeminiModel(newModel || Environment.GEMINI_MODEL);
const text = newModel ? `Выбрана модель "${newModel}"`
+1 -1
View File
@@ -14,7 +14,7 @@ export class MistralSetModel extends ChatCommand {
requirements = Requirements.Build(Requirement.BOT_CREATOR);
async execute(msg: Message, match?: RegExpExecArray | null): Promise<void> {
const newModel = match?.[1];
const newModel = match?.[3];
Environment.setMistralModel(newModel || Environment.MISTRAL_MODEL);
const text = newModel ? `Выбрана модель "${newModel}"`
+1 -1
View File
@@ -14,7 +14,7 @@ export class OllamaSetModel extends ChatCommand {
requirements = Requirements.Build(Requirement.BOT_CREATOR);
async execute(msg: Message, match?: RegExpExecArray | null): Promise<void> {
const newModel = match?.[1];
const newModel = match?.[3];
Environment.setOllamaModel(newModel || Environment.OLLAMA_MODEL);
const text = newModel ? `Выбрана модель "${newModel}"`