()
| 2292 | // Fallback initialization (should not be needed if chat.html loads correctly) |
| 2293 | // This matches the structure in chat.html |
| 2294 | function generateChatId() { |
| 2295 | return "chat_" + Date.now() + "_" + Math.random().toString(36).substr(2, 9); |
| 2296 | } |
| 2297 | |
| 2298 | function getCurrentModel() { |
| 2299 | const modelInput = document.getElementById("chat-model"); |