Skip to content

Commit dfb21dc

Browse files
fix: force privacy=true when switching to Ollama model
1 parent 29697e9 commit dfb21dc

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/lib/components/chat/Navbar.svelte

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@
6060
6161
let showShareChatModal = false;
6262
let showDownloadChatModal = false;
63+
64+
$: if ($models.find((m) => m.id === selectedModels[0])?.owned_by === 'ollama') {
65+
$privacyProxy = true;
66+
}
6367
</script>
6468

6569
<ShareChatModal bind:show={showShareChatModal} chatId={$chatId} />

0 commit comments

Comments
 (0)