Skip to content

Commit

Permalink
fixed gpu env issue, set proper button for open webui deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
mik-tf committed Feb 25, 2025
1 parent 7ebb4ae commit fd51940
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 12 deletions.
8 changes: 4 additions & 4 deletions packages/grid_client/src/zos/zmachine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ class Zmachine extends WorkloadData {
out += key;
out += "=";
out += this.env[key];
if (this.gpu) {
for (const g of this.gpu) {
out += g;
}
}
if (this.gpu) {
for (const g of this.gpu) {
out += g;
}
}
return out;
Expand Down
8 changes: 4 additions & 4 deletions packages/grid_client/src/zos/zmachine_light.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ class ZmachineLight extends WorkloadData {
out += key;
out += "=";
out += this.env[key];
if (this.gpu) {
for (const g of this.gpu) {
out += g;
}
}
if (this.gpu) {
for (const g of this.gpu) {
out += g;
}
}
return out;
Expand Down
9 changes: 6 additions & 3 deletions packages/playground/src/weblets/tf_deployment_list.vue
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,12 @@
@click="openDialog(tabs[activeTab].value, item)"
/>

<IconActionBtn icon="mdi-cog" tooltip="Access Domain" @click="dialog = item.name" />

<ManageGatewayDialog v-if="dialog === item.name" :vm="item" @close="dialog = undefined" />
<IconActionBtn
tooltip="Open Open WebUI"
color="anchor"
icon="mdi-web"
:href="'https://' + item.env.OPENWEBUI_DOMAIN"
/>
</template>

<template #Nextcloud-actions="{ item }">
Expand Down
5 changes: 4 additions & 1 deletion packages/playground/src/weblets/tf_openwebui.vue
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,10 @@ async function deploy() {
publicIpv6: ipv6.value,
planetary: planetary.value,
mycelium: mycelium.value,
envs: [{ key: "SSH_KEY", value: selectedSSHKeys.value }],
envs: [
{ key: "SSH_KEY", value: selectedSSHKeys.value },
{ key: "OPENWEBUI_DOMAIN", value: domain },
],
rootFilesystemSize: rootFilesystemSize.value,
hasGPU: hasGPU.value,
nodeId: selectionDetails.value?.node?.nodeId,
Expand Down

0 comments on commit fd51940

Please sign in to comment.