mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-09-17 15:27:15 +00:00
fix(models): show reasoning icon in model selectors
This commit is contained in:
@@ -46,6 +46,7 @@ import {
|
|||||||
Eye,
|
Eye,
|
||||||
EyeOff,
|
EyeOff,
|
||||||
Wrench,
|
Wrench,
|
||||||
|
BrainCircuit,
|
||||||
Trash2,
|
Trash2,
|
||||||
Sparkles,
|
Sparkles,
|
||||||
Info,
|
Info,
|
||||||
@@ -176,6 +177,7 @@ export default function DynamicFormItemComponent({
|
|||||||
uuid: string;
|
uuid: string;
|
||||||
name: string;
|
name: string;
|
||||||
abilities?: string[];
|
abilities?: string[];
|
||||||
|
reasoning_capabilities?: { supported?: boolean };
|
||||||
provider?: { requester?: string };
|
provider?: { requester?: string };
|
||||||
}) => (
|
}) => (
|
||||||
<span className="grid w-full min-w-0 grid-cols-[minmax(0,1fr)_auto] items-center gap-3">
|
<span className="grid w-full min-w-0 grid-cols-[minmax(0,1fr)_auto] items-center gap-3">
|
||||||
@@ -187,6 +189,13 @@ export default function DynamicFormItemComponent({
|
|||||||
{model.abilities?.includes('func_call') && (
|
{model.abilities?.includes('func_call') && (
|
||||||
<Wrench className="h-3 w-3 text-muted-foreground" />
|
<Wrench className="h-3 w-3 text-muted-foreground" />
|
||||||
)}
|
)}
|
||||||
|
{(model.reasoning_capabilities?.supported === true ||
|
||||||
|
model.abilities?.includes('reasoning')) && (
|
||||||
|
<BrainCircuit
|
||||||
|
className="h-3 w-3 shrink-0 text-muted-foreground"
|
||||||
|
aria-label={t('models.reasoningAbility')}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
</span>
|
</span>
|
||||||
{model.provider?.requester === LANGBOT_MODELS_PROVIDER_REQUESTER && (
|
{model.provider?.requester === LANGBOT_MODELS_PROVIDER_REQUESTER && (
|
||||||
<LangBotModelMetadata
|
<LangBotModelMetadata
|
||||||
|
|||||||
Reference in New Issue
Block a user