From 99ab305bf1d49d40883845fb263d5d3e30ad5250 Mon Sep 17 00:00:00 2001 From: Scott Yeager Date: Mon, 17 Feb 2025 16:18:41 -0800 Subject: [PATCH] Update openwebui deployment --- .../playground/src/weblets/tf_openwebui.vue | 23 ++++--------------- 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/packages/playground/src/weblets/tf_openwebui.vue b/packages/playground/src/weblets/tf_openwebui.vue index 80d1f2286b..8a646544b3 100644 --- a/packages/playground/src/weblets/tf_openwebui.vue +++ b/packages/playground/src/weblets/tf_openwebui.vue @@ -161,7 +161,10 @@ watch( function finalize(deployment: any) { layout.value.reloadDeploymentsList(); - layout.value.setStatus("success", "Successfully deployed an OpenWebUI instance."); + layout.value.setStatus( + "success", + "Successfully deployed an Open WebUI instance. You might need to wait a couple of minutes for the installation to complete, e.g. if you see Bad Gateway when opening the webpage, simply wait and refresh the page.", + ); layout.value.openDialog(deployment, deploymentListEnvironments.openwebui); } async function deploy() { @@ -200,10 +203,7 @@ async function deploy() { publicIpv6: ipv6.value, planetary: planetary.value, mycelium: mycelium.value, - envs: [ - { key: "SSH_KEY", value: selectedSSHKeys.value }, - { key: "OPENWEBUI_DOMAIN", value: domain }, - ], + envs: [{ key: "SSH_KEY", value: selectedSSHKeys.value }], rootFilesystemSize: rootFilesystemSize.value, hasGPU: hasGPU.value, nodeId: selectionDetails.value?.node?.nodeId, @@ -217,23 +217,10 @@ async function deploy() { accessNodeId: selectionDetails.value?.domain?.selectedDomain?.nodeId, }, }); - - layout.value.reloadDeploymentsList(); - layout.value.setStatus( - "success", - "Successfully deployed an Open WebUI instance. You might need to wait a couple of minutes for the installation to complete, e.g. if you see Bad Gateway when opening the webpage, simply wait and refresh the page.", - ); - layout.value.openDialog(vm, deploymentListEnvironments.openwebui); } catch (e) { layout.value.setStatus("failed", normalizeError(e, "Failed to deploy an Open WebUI instance.")); } - if (!selectionDetails.value?.domain?.enableSelectedDomain) { - vm[0].customDomain = selectionDetails.value?.domain?.customDomain; - finalize(vm); - return; - } - try { layout.value.setStatus("deploy", "Preparing to deploy gateway...");