refactor: rename model instance extraction method to improve clarity and update related logic in LLMQuotaLayer; enhance unit tests for model instance handling

This commit is contained in:
Novice
2026-03-24 15:33:48 +08:00
parent e6c4bf7320
commit 7e65659239
3 changed files with 86 additions and 68 deletions

View File

@ -140,7 +140,7 @@ const NodePanel: FC<Props> = ({
size={inMessage ? 'xs' : 'sm'}
className={cn('mr-2 shrink-0', inMessage && '!mr-1')}
type={nodeInfo.node_type}
toolIcon={nodeInfo.extras as string | { content: string, background: string } | undefined}
toolIcon={((nodeInfo.extras as { icon?: string } | undefined)?.icon || nodeInfo.extras) as string | { content: string, background: string } | undefined}
/>
<Tooltip
popupContent={