MCPcopy
hub / github.com/mudler/LocalAI / generateChatId

Function generateChatId

core/http/static/chat.js:2294–2296  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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");

Callers 1

createChatFunction · 0.85

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected