feat: add portable server script and frontend components for model management and chat interface
This commit is contained in:
1 parent
35f1ce9783
commit
676326cfd3
3 files changed
+8
-1
No files matched your search
@@ -1308,6 +1308,12 @@ function ModelManager({
|
||||
}
|
||||
};
|
||||
|
||||
const handleCancelImport = () => {
|
||||
if (importAbortController) {
|
||||
importAbortController.abort();
|
||||
}
|
||||
};
|
||||
|
||||
const handleImportFile = (e) => {
|
||||
const file = e.target.files[0];
|
||||
if (file) {
|
||||
|
||||
@@ -917,7 +917,6 @@ function TextChat({
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
{isBusy && !loadingModel && <LoaderCircle className="progress-spinner" size={16} />}
|
||||
{selectedModel && (!status.ready || status.settings?.model !== selectedModel) && !loadingModel && (
|
||||
<button
|
||||
className="m3-btn m3-btn-filled"
|
||||
|
||||
@@ -6736,6 +6736,8 @@ async function getLlmfitRecommendations(useCase = "chat", limit = 10) {
|
||||
});
|
||||
});
|
||||
|
||||
server.timeout = 0; // Disable socket timeout for large model uploads/downloads
|
||||
|
||||
server.listen(PORT_FRONTEND, "0.0.0.0", () => {
|
||||
console.log("");
|
||||
console.log(" ============================================================");
|
||||
|
||||
Reference in new issue
Block a user