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

Function handleUseInChat

src/components/MyLibrary.tsx:13–18  ·  view source on GitHub ↗
(modelName: string)

Source from the content-addressed store, hash-verified

11 const { downloads } = useModelDownload(refreshModels);
12
13 const handleUseInChat = (modelName: string) => {
14 // Store selected model in localStorage
15 localStorage.setItem('selected-model', modelName);
16 // Trigger navigation to chat page
17 window.dispatchEvent(new CustomEvent('navigate-to-chat', { detail: { model: modelName } }));
18 };
19
20 if (isLoading) {
21 return (

Callers 1

MyLibraryFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected