From 071916877c27dff751a9d678ae8b3ca62d1a9a35 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 29 Jun 2025 17:38:49 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20COMPLETE:=20Fix=20chat=20system=20t?= =?UTF-8?q?o=20use=20AI-powered=20responses?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - FIXED chat system still using hardcoded ai-responses.js fallbacks - REPLACED generateContextualResponse call with generateChatAIResponse - ADDED generateChatAIResponse method for chat interface - NOW BOTH systems (step-by-step AND chat) use server-side AI - ADDED debugging logs to track request/response flow - Updated cache-busting version for immediate testing Chat responses for 'thrust?' should now be contextual and educational! --- html/kidsai/index.html | 6 +- html/kidsai/script-new.js | 132 +++++++++++++++++++++++++++++--------- 2 files changed, 106 insertions(+), 32 deletions(-) diff --git a/html/kidsai/index.html b/html/kidsai/index.html index fde9d8d..b416643 100755 --- a/html/kidsai/index.html +++ b/html/kidsai/index.html @@ -176,9 +176,9 @@ }, 100); - - - + + +