From facb4fdf6be1d7de8840bc129fc7eae62442304a Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Sat, 16 Nov 2024 04:43:10 -0800 Subject: [PATCH] refac --- src/lib/components/workspace/Models/ModelEditor.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/workspace/Models/ModelEditor.svelte b/src/lib/components/workspace/Models/ModelEditor.svelte index 3872c6f88..eb8e4a094 100644 --- a/src/lib/components/workspace/Models/ModelEditor.svelte +++ b/src/lib/components/workspace/Models/ModelEditor.svelte @@ -86,7 +86,7 @@ if (baseModel) { if (baseModel.owned_by === 'openai') { - capabilities.usage = basemodel?.meta?.capabilities?.usage ?? false; + capabilities.usage = baseModel?.meta?.capabilities?.usage ?? false; } else { delete capabilities.usage; }