Skip to content

An AI-powered search engine with a generative UI

feat: highlight reasoning models with accent color

Yoshiki Miurac3509f07077e
diff --git a/components/model-selector.tsx b/components/model-selector.tsx
index 58c2701b..979af42b 100644
--- a/components/model-selector.tsx
+++ b/components/model-selector.tsx
@@ -2,7 +2,8 @@
import { Model, models } from '@/lib/types/models'
import { getCookie, setCookie } from '@/lib/utils/cookies'
-import { Check, ChevronsUpDown } from 'lucide-react'
+import { isReasoningModel } from '@/lib/utils/registry'
+import { Check, ChevronsUpDown, Lightbulb } from 'lucide-react'
import Image from 'next/image'
import { useEffect, useState } from 'react'
import { createModelId } from '../lib/utils'
@@ -67,6 +68,9 @@ export function ModelSelector() {
className="bg-white rounded-full border"
/>
<span className="text-xs font-medium">{selectedModel.name}</span>
+ {isReasoningModel(selectedModel.id) && (
+ <Lightbulb size={12} className="text-accent-blue-foreground" />
+ )}
</div>
) : (
'Select model'
diff --git a/lib/utils/registry.ts b/lib/utils/registry.ts
index f81c8b20..431bec48 100644
--- a/lib/utils/registry.ts
+++ b/lib/utils/registry.ts
@@ -137,3 +137,10 @@ export function isToolCallSupported(model?: string) {
// Deepseek v3's tool call is unstable, so we include it in the list
return !modelName?.includes('deepseek')
}
+
+export function isReasoningModel(model: string): boolean {
+ if (typeof model !== 'string') {
+ return false
+ }
+ return model.includes('deepseek-r1') || model.includes('deepseek-reasoner')
+}