diff --git a/src/lib/common/modals/StateModal.svelte b/src/lib/common/modals/StateModal.svelte index ee6fecdb..c489007c 100644 --- a/src/lib/common/modals/StateModal.svelte +++ b/src/lib/common/modals/StateModal.svelte @@ -217,7 +217,7 @@
{#if idx === 0} {/if} void + * onSelectAgent?: (detail: { agent: import('$agentTypes').AgentModel | null, template: any, llmConfig: any }) => void * }} */ let { @@ -45,7 +45,8 @@ name: x.name, label: x.name, value: x.name, - content: x.content + content: x.content, + llm_config: x.llm_config || null })) || []; fireSelectAgent(); @@ -62,7 +63,8 @@ function fireSelectAgent() { onSelectAgent?.({ agent: selectedAgent || null, - template: selectedTemplate || null + template: selectedTemplate || null, + llmConfig: selectedTemplate?.llm_config || selectedAgent?.llm_config || null }); } diff --git a/src/routes/page/instruction/instruction-components/instruction-llm.svelte b/src/routes/page/instruction/instruction-components/instruction-llm.svelte index fb4e02f0..5c2157bb 100644 --- a/src/routes/page/instruction/instruction-components/instruction-llm.svelte +++ b/src/routes/page/instruction/instruction-components/instruction-llm.svelte @@ -1,5 +1,7 @@ @@ -92,4 +150,37 @@ onselect={e => selectModel(e)} />
+ +
+ + validateIntegerInput(e)} + onchange={e => changeMaxOutputTokens(e)} + /> +
+ + {#if isReasoningModel} +
+ +