@@ -397,6 +397,12 @@ window.__ModuleLoader__.load({
397397 "memory.features.entityExtractionReasoning.low" : "低" ,
398398 "memory.features.entityExtractionReasoning.medium" : "中" ,
399399 "memory.features.entityExtractionReasoning.high" : "高" ,
400+ "memory.features.summarizeReasoningEffort" : "蒸馏思考强度" ,
401+ "memory.features.summarizeReasoningEffort.none" : "跟随默认" ,
402+ "memory.features.summarizeReasoningEffort.low" : "低" ,
403+ "memory.features.summarizeReasoningEffort.medium" : "中" ,
404+ "memory.features.summarizeReasoningEffort.high" : "高" ,
405+ "memory.features.summarizeReasoningEffort.hint" : "思考型模型建议选低档,避免推理烧光输出预算导致总结失败;改后重启 DSH 生效" ,
400406 "memory.features.entityExtractionModelHint" : "Provider/模型留空 = 跟随主对话模型;思考强度 none = 服务商默认" ,
401407 "memory.features.codingRetrospect" : "编码记忆蒸馏" ,
402408 "memory.features.codingRetrospect.hint" : "用完整转录(含工具调用与报错)提炼踩坑、约束与被否决方案" ,
@@ -787,6 +793,12 @@ window.__ModuleLoader__.load({
787793 "memory.features.entityExtractionReasoning.low" : "Low" ,
788794 "memory.features.entityExtractionReasoning.medium" : "Medium" ,
789795 "memory.features.entityExtractionReasoning.high" : "High" ,
796+ "memory.features.summarizeReasoningEffort" : "Distill reasoning effort" ,
797+ "memory.features.summarizeReasoningEffort.none" : "Follow default" ,
798+ "memory.features.summarizeReasoningEffort.low" : "Low" ,
799+ "memory.features.summarizeReasoningEffort.medium" : "Medium" ,
800+ "memory.features.summarizeReasoningEffort.high" : "High" ,
801+ "memory.features.summarizeReasoningEffort.hint" : "Prefer low for thinking models so reasoning cannot drain the output budget; takes effect after a DSH restart" ,
790802 "memory.features.entityExtractionModelHint" : "Provider / model empty = follow the main conversation model; reasoning none = provider default" ,
791803 "memory.features.codingRetrospect" : "Coding retrospection" ,
792804 "memory.features.codingRetrospect.hint" : "Distill pitfalls, constraints and rejected solutions from full transcripts (tools and errors included)" ,
@@ -1949,7 +1961,8 @@ window.__ModuleLoader__.load({
19491961 const FEATURE_STRINGS = [ "dreamProvider" , "dreamModel" , "sleepProvider" , "sleepModel" , "entityExtractionProvider" , "entityExtractionModel" , "localEmbedModel" , "ollamaBaseUrl" , "ollamaModel" ] ;
19501962 const EMBED_PROVIDERS = [ "openai" , "local" , "ollama" ] ;
19511963 // 实体抽取思考强度(issue #109):与后端 FEATURE_FLAG_ENUMS 枚举对齐。
1952- const ENTITY_REASONING = [ "none" , "low" , "medium" , "high" ] ;
1964+ // #315 起蒸馏思考强度共用同一组档位(后端枚举多一个 off,一样可发)。
1965+ const REASONING_OPTIONS = [ "none" , "low" , "medium" , "high" ] ;
19531966
19541967 function FeatureRow ( { name, hint, on, disabled, onToggle, sub } ) {
19551968 return h ( "div" , { className : "mneme-featrow" , style : sub ? { paddingLeft : 18 , opacity : 0.86 } : undefined } ,
@@ -2230,11 +2243,28 @@ window.__ModuleLoader__.load({
22302243 disabled : busy ,
22312244 onChange : ( e ) => put ( { entityExtractionReasoning : e . target . value } )
22322245 } ,
2233- ENTITY_REASONING . map ( ( r ) => h ( "option" , { key : r , value : r } , t ( `memory.features.entityExtractionReasoning.${ r } ` ) ) ) )
2246+ REASONING_OPTIONS . map ( ( r ) => h ( "option" , { key : r , value : r } , t ( `memory.features.entityExtractionReasoning.${ r } ` ) ) ) )
22342247 ) ,
22352248 h ( "div" , { className : "mneme-featsubhint" } , t ( "memory.features.entityExtractionModelHint" ) )
22362249 ) ;
22372250
2251+ // 蒸馏思考强度(issue #315):autoSummarize 开着才展开,档位与实体抽取
2252+ // 同款枚举下拉、即时提交。蒸馏没有独立 provider/model 路由键(跟随会话
2253+ // 头或 config 文件的 summarizeProvider/summarizeModel),不上连通性测试。
2254+ const summarizeSub = eff . autoSummarize && h ( "div" , { className : "mneme-featsub" } ,
2255+ h ( "div" , { className : "mneme-featnum" } ,
2256+ h ( "span" , { className : "mneme-featnumlabel" } , t ( "memory.features.summarizeReasoningEffort" ) ) ,
2257+ h ( "select" , {
2258+ className : "mneme-select" ,
2259+ value : eff . summarizeReasoningEffort || "none" ,
2260+ disabled : busy ,
2261+ onChange : ( e ) => put ( { summarizeReasoningEffort : e . target . value } )
2262+ } ,
2263+ REASONING_OPTIONS . map ( ( r ) => h ( "option" , { key : r , value : r } , t ( `memory.features.summarizeReasoningEffort.${ r } ` ) ) ) )
2264+ ) ,
2265+ h ( "div" , { className : "mneme-featsubhint" } , t ( "memory.features.summarizeReasoningEffort.hint" ) )
2266+ ) ;
2267+
22382268 if ( error && ! state ) return h ( "section" , { className : "mneme-set-card" } ,
22392269 h ( "div" , { className : "mneme-set-title" } , t ( "memory.features.title" ) ) ,
22402270 h ( "div" , { className : "mneme-set-hint" } , error ) ) ;
@@ -2252,6 +2282,7 @@ window.__ModuleLoader__.load({
22522282 FEATURE_GROUPS . map ( ( g ) => h ( react . Fragment , { key : g . key } ,
22532283 h ( "div" , { className : "mneme-featgroup" } , t ( `memory.features.${ g . key } ` ) ) ,
22542284 g . items . map ( flagRow ) ,
2285+ g . key === "group.core" && h ( react . Fragment , null , summarizeSub ) ,
22552286 g . key === "group.enhance" && h ( react . Fragment , null , embedSub , entitySub ) ,
22562287 g . key === "group.dream" && h ( react . Fragment , null , dreamSub , sleepSub )
22572288 ) ) ,
0 commit comments