Configure and verify Strata reasoning selector mappings

This commit is contained in:
Mikei386 committed 2026-10-11 14:24:51 +02:00
1 parent 94e211dd1d
commit f3ce7ac68d
4 files changed
+103 -4

No files matched your search

@@ -11,7 +11,7 @@ let count=0;
for(const [id,rule] of Object.entries(registry.models)){
const model={id,name:id,owned_by:'openai'};t.state.models.set(id,model);
if(!rule.thinking){assert.equal(t.effortInfoForModel(model).show,false);continue;}
for(const level of ['none','low','medium','xhigh']){
for(const level of Object.keys(rule.mappings)){
const body={model:id,params:{temperature:0.7,reasoning_effort:'high',custom_params:{chat_template_kwargs:{preserve_thinking:true}}}};
assert.equal(t.applySelectionToBody(body,model,level,false),true);
assert.equal(body.params.custom_params.reasoning_effort,level);