chore: update 3 file(s)
This commit is contained in:
@@ -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
|
||||||
@@ -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
|
||||||
11
chatv2.js
11
chatv2.js
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user