From 9a649a9475a16f1fa896c0ae81e450a611a6b73a Mon Sep 17 00:00:00 2001 From: mike Date: Mon, 29 Dec 2025 00:00:55 +0100 Subject: [PATCH] chore: update 3 file(s) --- webpack.config.js | 7 +++---- www/chatv3.js | 6 ++++-- www/index.html | 50 ++++++++++++++++++++++++----------------------- 3 files changed, 33 insertions(+), 30 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index ce30715..b75fd96 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -15,7 +15,7 @@ export default (env, argv) => { mode: isProduction ? 'production' : 'development', entry: { - wwww: './www/chatv3.js' + www: ['./www/chatv3.js', './www/style2.css'] }, output: { @@ -46,7 +46,7 @@ export default (env, argv) => { new HtmlWebpackPlugin({ template: './www/index.html', filename: 'index.html', - chunks : ['wwww'], + chunks : ['www'], inject : 'body', minify : isProduction }), @@ -84,8 +84,7 @@ export default (env, argv) => { hot : true, devMiddleware: { publicPath: '/' }, static : [ - { directory: path.resolve(__dirname, 'dist') }, - { directory: path.resolve(__dirname, 'www'), publicPath: '/' } + { directory: path.resolve(__dirname, 'dist') } ] } } diff --git a/www/chatv3.js b/www/chatv3.js index c0f0b65..ebae39a 100644 --- a/www/chatv3.js +++ b/www/chatv3.js @@ -1,3 +1,5 @@ +import './style2.css' + const BACKENDS = { plato : { prod: '/api/plato', @@ -212,7 +214,7 @@ marked.setOptions({ } }) -function autoResize(textarea) { +window.autoResize = function autoResize(textarea) { textarea.style.height = 'auto' textarea.style.height = Math.min(textarea.scrollHeight, 300) + 'px' } @@ -687,4 +689,4 @@ function resetChat() { chatLog.innerHTML = '' addMessage('assistant', welcomeMessage, true, null, false) } -} \ No newline at end of file +} diff --git a/www/index.html b/www/index.html index 4eea667..417edad 100644 --- a/www/index.html +++ b/www/index.html @@ -4,7 +4,6 @@ Chat - @@ -26,27 +25,32 @@
-
?
Assistant

Welcome to LM Studio Chat!

-

I now support full conversation history, real-time streaming responses and dark, readable text formatting.

-

Features:

-
    -
  1. Full Chat History - Complete conversation context is now sent to the AI
  2. -
  3. Smart History Management - Automatically keeps the last 50 messages
  4. -
  5. Streaming Mode (enabled by default) - Watch responses appear word-by-word
  6. -
  7. Markdown Rendering - Proper formatting for code, lists, tables, and more
  8. -
  9. Readable Dark Text - No more eye strain from light gray text
  10. -
-

Try it out:

-
    -
  • Ask follow-up questions that reference earlier messages
  • -
  • Have a multi-turn conversation with full context
  • -
  • Ask "what did I just ask?" to test history retention
  • -
  • Watch the streaming response in real-time!
  • -
-
-

Tip: You can toggle streaming and markdown using the checkboxes below.

-
-
+
+
+
?
+ Assistant
+

Welcome to LM Studio Chat!

+

I now support full conversation history, real-time streaming responses and dark, readable text formatting.

+

Features:

+
    +
  1. Full Chat History - Complete conversation context is now sent to the AI
  2. +
  3. Smart History Management - Automatically keeps the last 50 messages
  4. +
  5. Streaming Mode (enabled by default) - Watch responses appear word-by-word
  6. +
  7. Markdown Rendering - Proper formatting for code, lists, tables, and more
  8. +
  9. Readable Dark Text - No more eye strain from light gray text
  10. +
+

Try it out:

+
    +
  • Ask follow-up questions that reference earlier messages
  • +
  • Have a multi-turn conversation with full context
  • +
  • Ask "what did I just ask?" to test history retention
  • +
  • Watch the streaming response in real-time!
  • +
+
+

Tip: You can toggle streaming and markdown using the checkboxes below.

+
+
+
@@ -73,7 +77,5 @@
- -