File tree Expand file tree Collapse file tree
packages/agent-runtime/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -49,12 +49,6 @@ export const FREEBUFF_MODELS = [
4949 tagline : 'Deepest, 1/day' ,
5050 availability : 'always' ,
5151 } ,
52- {
53- id : FREEBUFF_DEEPSEEK_V4_PRO_MODEL_ID ,
54- displayName : 'DeepSeek V4 Pro' ,
55- tagline : 'Experimental' ,
56- availability : 'always' ,
57- } ,
5852 {
5953 id : FREEBUFF_MINIMAX_MODEL_ID ,
6054 displayName : 'MiniMax M2.7' ,
Original file line number Diff line number Diff line change @@ -9,3 +9,7 @@ export const globalStopSequence = `${JSON.stringify(endsAgentStepParam)}`
99 * to diff sequential requests and find what's breaking prompt caching.
1010 */
1111export const CACHE_DEBUG_FULL_LOGGING = false
12+
13+ // Keep disabled by default to preserve mainline behavior until reasoning-token
14+ // replay has been tested more thoroughly.
15+ export const INCLUDE_REASONING_IN_MESSAGE_HISTORY = false
Original file line number Diff line number Diff line change 88import { generateCompactId } from '@codebuff/common/util/string'
99
1010import { processStreamWithTools } from '../tool-stream-parser'
11+ import { INCLUDE_REASONING_IN_MESSAGE_HISTORY } from '../constants'
1112import {
1213 executeCustomToolCall ,
1314 executeToolCall ,
@@ -276,7 +277,7 @@ export async function processStream(
276277 }
277278
278279 if ( chunk . type === 'reasoning' ) {
279- if ( chunk . text ) {
280+ if ( INCLUDE_REASONING_IN_MESSAGE_HISTORY && chunk . text ) {
280281 assistantMessages . push (
281282 assistantMessage ( { type : 'reasoning' , text : chunk . text } ) ,
282283 )
You can’t perform that action at this time.
0 commit comments