feat: chat valves

This commit is contained in:
Timothy J. Baek
2024-07-11 17:18:18 -07:00
parent 9f9122b6d7
commit 97098edfeb
6 changed files with 136 additions and 171 deletions
+14 -1
View File
@@ -104,6 +104,7 @@
};
let params = {};
let valves = {};
$: if (history.currentId !== null) {
let _messages = [];
@@ -1541,6 +1542,18 @@
</div>
</div>
<ChatControls bind:show={showControls} bind:params />
<ChatControls
models={selectedModelIds.reduce((a, e, i, arr) => {
const model = $models.find((m) => m.id === e);
if (model) {
return [...a, model];
}
return a;
}, [])}
bind:show={showControls}
bind:params
bind:valves
/>
</div>
{/if}