From a4dac0220e91535302216098b83719bbe1790b64 Mon Sep 17 00:00:00 2001 From: Josep Amado Date: Wed, 12 Jun 2024 19:08:07 +0100 Subject: [PATCH] =?UTF-8?q?Actualiza=20el=20scroll=20position=20despues=20?= =?UTF-8?q?de=20a=C3=B1adir=20cada=20chunck=20y=20no=20al=20final=20del=20?= =?UTF-8?q?mensaje=20completo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.history/index_20240612184154.html | 295 +++++++++++++++++ .../.history/index_20240612190429.html | 296 ++++++++++++++++++ 04-chatgpt-local/index.html | 3 +- 3 files changed, 593 insertions(+), 1 deletion(-) create mode 100644 04-chatgpt-local/.history/index_20240612184154.html create mode 100644 04-chatgpt-local/.history/index_20240612190429.html diff --git a/04-chatgpt-local/.history/index_20240612184154.html b/04-chatgpt-local/.history/index_20240612184154.html new file mode 100644 index 0000000..bd3e68b --- /dev/null +++ b/04-chatgpt-local/.history/index_20240612184154.html @@ -0,0 +1,295 @@ + + + + + + + ChatGPT Local 100% privado, gratis y maravilloso + + + + + + + +
+ +
+ +
+ + +
+ +   + + + + + \ No newline at end of file diff --git a/04-chatgpt-local/.history/index_20240612190429.html b/04-chatgpt-local/.history/index_20240612190429.html new file mode 100644 index 0000000..c0d169a --- /dev/null +++ b/04-chatgpt-local/.history/index_20240612190429.html @@ -0,0 +1,296 @@ + + + + + + + ChatGPT Local 100% privado, gratis y maravilloso + + + + + + + +
+ +
+ +
+ + +
+ +   + + + + + \ No newline at end of file diff --git a/04-chatgpt-local/index.html b/04-chatgpt-local/index.html index bd3e68b..c0d169a 100644 --- a/04-chatgpt-local/index.html +++ b/04-chatgpt-local/index.html @@ -235,6 +235,7 @@ const content = choice?.delta?.content ?? "" reply += content $botMessage.textContent = reply + $container.scrollTop = $container.scrollHeight } $button.removeAttribute('disabled') @@ -242,7 +243,7 @@ role: 'assistant', content: reply }) - $container.scrollTop = $container.scrollHeight + }) function addMessage(text, sender) {