From cecb975f66763a7c5502e87e88e48e7cb3397076 Mon Sep 17 00:00:00 2001 From: Wazir Ahmed Date: Fri, 23 Jan 2026 20:14:55 +0530 Subject: [PATCH] fix: LOAD GENAI TO RUNTIME does not initialize the module Signed-off-by: Wazir Ahmed --- lib/Admin_FlushVariables.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/Admin_FlushVariables.cpp b/lib/Admin_FlushVariables.cpp index f703a4e10..94471e0c8 100644 --- a/lib/Admin_FlushVariables.cpp +++ b/lib/Admin_FlushVariables.cpp @@ -1092,6 +1092,10 @@ void ProxySQL_Admin::flush_genai_variables___database_to_runtime(SQLite3DB* db, } } + if (GloAI && GloGATH->variables.genai_enabled) { + GloAI->init(); + } + if (lock) wrunlock(); } if (resultset) delete resultset;