chore: update 3 file(s)

This commit is contained in:
mike
2025-12-28 03:21:59 +01:00
parent 5d6ccd0087
commit 2e3f811f25
3 changed files with 8 additions and 7 deletions

View File

@@ -1 +1 @@
model: /models/Qwen/Qwen2.5-Coder-32B-Instruct-GGUF/qwen2.5-coder-32b-instruct-q4_k_m.gguf model: /models/qwen2.5-coder-32b-instruct-q4_k_m.gguf

View File

@@ -1,4 +1,4 @@
- name: /models/Qwen/Qwen2.5-Coder-32B-Instruct-GGUF/qwen2.5-coder-32b-instruct-q4_k_m.gguf - name: /models/qwen2.5-coder-32b-instruct-q4_k_m.gguf
extra_params: extra_params:
num_ctx: 16384 num_ctx: 16384
num_threads: 8 num_threads: 8

View File

@@ -31,9 +31,9 @@ let chatHistory = JSON.parse(localStorage.getItem('chatHistory')) || [] // Store
// Ensure chatHistory is an array of objects with the correct structure // Ensure chatHistory is an array of objects with the correct structure
chatHistory = chatHistory.map(message => ({ chatHistory = chatHistory.map(message => ({
role: message.role || 'user', role : message.role || 'user',
content: message.content || '', content : message.content || '',
markdown: message.markdown || false, markdown : message.markdown || false,
messageId: message.messageId || `msg-${ Date.now() }` messageId: message.messageId || `msg-${ Date.now() }`
})) }))
@@ -614,8 +614,9 @@ window.onload = () => {
// Load chat history from localStorage // Load chat history from localStorage
if (chatHistory.length === 0) { if (chatHistory.length === 0) {
// Add event listener for reset button // Add event listener for reset button
document.getElementById('resetBtn').addEventListener('click', resetChat) document.getElementById('resetBtn').addEventListener('click', resetChat)
}
} }
// Reset chat history // Reset chat history