From 62cab41b5b789f2bd2d0a3b161b134b9b400795d Mon Sep 17 00:00:00 2001 From: Danil Nikolaev Date: Mon, 12 Jan 2026 18:18:29 +0300 Subject: [PATCH] fix match index --- src/commands/ollama-search.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/ollama-search.ts b/src/commands/ollama-search.ts index 1791458..e119cd4 100644 --- a/src/commands/ollama-search.ts +++ b/src/commands/ollama-search.ts @@ -29,7 +29,7 @@ export class OllamaSearch extends ChatCommand { parse_mode: "Markdown" }); - const results = await ollama.webSearch({query: match?.[1]}); + const results = await ollama.webSearch({query: match?.[2]}); console.log("results", results); let message = "Результаты:\n\n";