File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -654,6 +654,7 @@ export const useChatStore = createPersistStore(
654654 messages : topicMessages ,
655655 config : {
656656 model : getSummarizeModel ( session . mask . modelConfig . model ) ,
657+ stream : false ,
657658 } ,
658659 onFinish ( message ) {
659660 get ( ) . updateCurrentSession (
@@ -698,6 +699,10 @@ export const useChatStore = createPersistStore(
698699 historyMsgLength > modelConfig . compressMessageLengthThreshold &&
699700 modelConfig . sendMemory
700701 ) {
702+ /** Destruct max_tokens while summarizing
703+ * this param is just shit
704+ **/
705+ const { max_tokens, ...modelcfg } = modelConfig ;
701706 api . llm . chat ( {
702707 messages : toBeSummarizedMsgs . concat (
703708 createMessage ( {
@@ -707,7 +712,7 @@ export const useChatStore = createPersistStore(
707712 } ) ,
708713 ) ,
709714 config : {
710- ...modelConfig ,
715+ ...modelcfg ,
711716 stream : true ,
712717 model : getSummarizeModel ( session . mask . modelConfig . model ) ,
713718 } ,
You can’t perform that action at this time.
0 commit comments