From 7503902ae119ac966b0b75a604b1f95e5c22d1af Mon Sep 17 00:00:00 2001 From: Eduardo Gonzalez Date: Thu, 12 Dec 2024 11:36:36 +0900 Subject: [PATCH] Make technologic tolerant to having OpenAI be renamed. --- src/routes/settings/backends/+page.svelte | 24 ++++++++-------- .../backends/[backendName]/+page.svelte | 28 +++++++++++-------- 2 files changed, 29 insertions(+), 23 deletions(-) diff --git a/src/routes/settings/backends/+page.svelte b/src/routes/settings/backends/+page.svelte index a95c2f3..12cd122 100644 --- a/src/routes/settings/backends/+page.svelte +++ b/src/routes/settings/backends/+page.svelte @@ -49,7 +49,7 @@ > - {backend.name} + {(backend)? backend.name : 'Backend Not found'} @@ -73,16 +73,18 @@

{$t('settings.backend.useModel')}:

diff --git a/src/routes/settings/backends/[backendName]/+page.svelte b/src/routes/settings/backends/[backendName]/+page.svelte index a455118..7f3281b 100644 --- a/src/routes/settings/backends/[backendName]/+page.svelte +++ b/src/routes/settings/backends/[backendName]/+page.svelte @@ -54,7 +54,7 @@
- Backend: {backend.name} + Backend: {(backend) ? backend.name : 'No backend found' }
@@ -87,22 +87,26 @@ Default Model

Models

    - {#each dto.models as model} -
  • - - -
  • - {/each} + {#if dto.models} + {#each dto.models as model} +
  • + + +
  • + {/each} + {/if}