MCPcopy Create free account
hub / github.com/Icecubesaad/OpenLLM-Studio / handleUseInChat

Function handleUseInChat

src/components/ModelCard.tsx:15–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13 const isDownloading = downloadProgress?.isDownloading || false;
14
15 const handleUseInChat = () => {
16 if (onUseInChat) {
17 onUseInChat(model.name);
18 } else {
19 // Fallback: store in localStorage and dispatch event
20 localStorage.setItem('selected-model', model.name);
21 window.dispatchEvent(new CustomEvent('navigate-to-chat', { detail: { model: model.name } }));
22 }
23 };
24
25 return (
26 <div className="bg-dark-surface border border-dark-border rounded-xl p-5 hover:border-dark-accent hover:shadow-glow-sm transition-all group">

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected