(modelName: string)
| 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 ( |