This commit is contained in:
Timothy Jaeryang Baek 2026-08-17 00:50:54 -07:00
parent 4ec6ee1441
commit 6e468c5b95
2 changed files with 12 additions and 3 deletions

View file

@ -89,6 +89,14 @@
</div>
{/if}
</Tooltip>
<Handle type="target" position={Position.Top} class="w-2 rounded-full dark:bg-gray-900" />
<Handle type="source" position={Position.Bottom} class="w-2 rounded-full dark:bg-gray-900" />
<Handle
type="target"
position={data?.direction === 'horizontal' ? Position.Left : Position.Top}
class="w-2 rounded-full dark:bg-gray-900"
/>
<Handle
type="source"
position={data?.direction === 'horizontal' ? Position.Right : Position.Bottom}
class="w-2 rounded-full dark:bg-gray-900"
/>
</div>

View file

@ -105,7 +105,8 @@
data: {
user: chatUser ?? $user,
message: history.messages[id],
model: $models.find((model) => model.id === history.messages[id].model)
model: $models.find((model) => model.id === history.messages[id].model),
direction
},
position: { x, y }
});