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 @@
-
Welcome to LM Studio Chat!
-
I now support full conversation history, real-time streaming responses and dark, readable text formatting.
-
Features:
-
- - Full Chat History - Complete conversation context is now sent to the AI
- - Smart History Management - Automatically keeps the last 50 messages
- - Streaming Mode (enabled by default) - Watch responses appear word-by-word
- - Markdown Rendering - Proper formatting for code, lists, tables, and more
- - Readable Dark Text - No more eye strain from light gray text
-
-
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.
-
-
+
+
+
Welcome to LM Studio Chat!
+
I now support full conversation history, real-time streaming responses and dark, readable text formatting.
+
Features:
+
+ - Full Chat History - Complete conversation context is now sent to the AI
+ - Smart History Management - Automatically keeps the last 50 messages
+ - Streaming Mode (enabled by default) - Watch responses appear word-by-word
+ - Markdown Rendering - Proper formatting for code, lists, tables, and more
+ - Readable Dark Text - No more eye strain from light gray text
+
+
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 @@
-
-