From f2727275b2171ec851ff8ab035a25aa4004c4496 Mon Sep 17 00:00:00 2001 From: Nathan Sarrazin Date: Tue, 21 Jan 2025 12:29:57 +0100 Subject: [PATCH] feat: add indicator for reasoning models in /models page --- src/routes/+layout.server.ts | 1 + src/routes/models/+page.svelte | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/src/routes/+layout.server.ts b/src/routes/+layout.server.ts index 6115940d3a9..30c0e7a03db 100644 --- a/src/routes/+layout.server.ts +++ b/src/routes/+layout.server.ts @@ -213,6 +213,7 @@ export const load: LayoutServerLoad = async ({ locals, depends, fetch }) => { datasetUrl: model.datasetUrl, displayName: model.displayName, description: model.description, + reasoning: !!model.reasoning, logoUrl: model.logoUrl, promptExamples: model.promptExamples, parameters: model.parameters, diff --git a/src/routes/models/+page.svelte b/src/routes/models/+page.svelte index 0aa77a5d820..9d59ac66a79 100644 --- a/src/routes/models/+page.svelte +++ b/src/routes/models/+page.svelte @@ -88,6 +88,22 @@ {/if} + {#if model.reasoning} + + + + + + {/if} {#if model.id === $settings.activeModel}