diff --git a/src/modules/assistants/tools/ToolNameWithTooltip.tsx b/src/modules/assistants/tools/ToolNameWithTooltip.tsx index 5bbef2a4..d24a8ec5 100644 --- a/src/modules/assistants/tools/ToolNameWithTooltip.tsx +++ b/src/modules/assistants/tools/ToolNameWithTooltip.tsx @@ -15,10 +15,7 @@ */ import { ToolReference } from '@/app/api/tools/types'; -import { - getStaticToolName, - useToolInfo, -} from '@/modules/tools/hooks/useToolInfo'; +import { useToolInfo } from '@/modules/tools/hooks/useToolInfo'; import classes from './ToolNameWithTooltip.module.scss'; import { ToolInfoButton } from './ToolInfoButton'; import { useProjectContext } from '@/layout/providers/ProjectProvider'; diff --git a/src/modules/auth/AcceptToUForm.module.scss b/src/modules/auth/AcceptToUForm.module.scss index 8e2662dc..d08e7f97 100644 --- a/src/modules/auth/AcceptToUForm.module.scss +++ b/src/modules/auth/AcceptToUForm.module.scss @@ -44,8 +44,8 @@ } :global( - .#{$prefix}--checkbox:not(:checked) ~ .#{$prefix}--checkbox-label::before - ) { + .#{$prefix}--checkbox:not(:checked) ~ .#{$prefix}--checkbox-label::before + ) { border-color: currentColor; } } diff --git a/src/modules/tools/hooks/useToolInfo.tsx b/src/modules/tools/hooks/useToolInfo.tsx index 9d01b27f..b3e9439a 100644 --- a/src/modules/tools/hooks/useToolInfo.tsx +++ b/src/modules/tools/hooks/useToolInfo.tsx @@ -39,6 +39,7 @@ import { encodeEntityWithMetadata } from '@/app/api/utils'; import { Organization } from '@/app/api/organization/types'; import { Project } from '@/app/api/projects/types'; import { useTools } from './useTools'; +import capitalize from 'lodash/capitalize'; export function useToolInfo({ toolReference, @@ -87,7 +88,7 @@ export function useToolInfo({ if (tool?.name === 'DuckDuckGo') return DuckDuckGo; return SkeletonIcon; } - return SYSTEM_TOOL_ICONS[id]; + return SYSTEM_TOOL_ICONS[id] ?? Tools; } if (type === 'file_search') return SearchLocate; if (type === 'code_interpreter' || type === 'function') return Code; @@ -123,7 +124,7 @@ export function getStaticToolName({ type, id, tool }: ToolReference) { switch (type) { case 'system': - return SYSTEM_TOOL_NAME[id]; + return SYSTEM_TOOL_NAME[id] ?? id.split('_').map(capitalize).join(' '); case 'code_interpreter': return 'Python Intepreter'; case 'function':