refac
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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 }
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user