File tree Expand file tree Collapse file tree 2 files changed +1
-22
lines changed
routes/page/agent/[agentId]/agent-components Expand file tree Collapse file tree 2 files changed +1
-22
lines changed Original file line number Diff line number Diff line change 1717 * @property {string? } model
1818 * @property {number } max_recursion_depth
1919 * @property {number? } [max_output_tokens]
20- * @property {string? } [reasoning_effort_level]
2120 */
2221
2322
Original file line number Diff line number Diff line change 1919 }
2020
2121 const recursiveDepthLowerLimit = 1 ;
22+
2223 /** @type {import('$commonTypes').LabelValuePair[]} */
2324 const reasonLevelOptions = [
2425 { value: ' ' , label: ' ' },
9899 handleAgentChange ();
99100 }
100101
101- /** @param {any} e */
102- function changeReasoningEffortLevel (e ) {
103- config .reasoning_effort_level = e .target .value || null ;
104- handleAgentChange ();
105- }
106-
107102 /** @param {any} e */
108103 function validateIntegerInput (e ) {
109104 const reg = new RegExp (INTEGER_REGEX , ' g' );
179174 / >
180175 < / div>
181176 < / div>
182-
183- < div class = " mb-3 row" >
184- < label for = " example-text-input" class = " col-md-3 col-form-label" >
185- Reasoning level
186- < / label>
187- < div class = " col-md-9" >
188- < Input type= " select" value= {config .reasoning_effort_level } on: change= {e => changeReasoningEffortLevel (e)}>
189- {#each reasonLevelOptions as option}
190- < option value= {option .value } selected= {option .value == config .reasoning_effort_level }>
191- {option .label }
192- < / option>
193- {/ each}
194- < / Input>
195- < / div>
196- < / div>
197177 < / CardBody>
198178< / Card>
You can’t perform that action at this time.
0 commit comments