fix(api): History rewriting should delete the current message.

fix(UI): Model changes shouldn't submit the form.
This commit is contained in:
Willie Zutz
2025-05-06 23:45:46 -06:00
parent 6220822c7c
commit 8796009141
3 changed files with 111 additions and 21 deletions

View File

@@ -254,7 +254,7 @@ const ModelSelector = ({
{isExpanded && (
<div className="pl-6">
{provider.models.map((modelOption) => (
<button
<PopoverButton
key={`${modelOption.provider}-${modelOption.model}`}
className={cn(
'w-full text-left px-4 py-2 text-sm flex items-center',
@@ -283,7 +283,7 @@ const ModelSelector = ({
Active
</div>
)}
</button>
</PopoverButton>
))}
</div>
)}