@@ -424,25 +424,6 @@ describe("DeepSeekHandler", () => {
424424 expect ( reasoningChunks [ 1 ] . text ) . toBe ( " I'll analyze step by step." )
425425 } )
426426
427- it ( "should accumulate reasoning content via getReasoningContent()" , async ( ) => {
428- const reasonerHandler = new DeepSeekHandler ( {
429- ...mockOptions ,
430- apiModelId : "deepseek-reasoner" ,
431- } )
432-
433- // Before any API call, reasoning content should be undefined
434- expect ( reasonerHandler . getReasoningContent ( ) ) . toBeUndefined ( )
435-
436- const stream = reasonerHandler . createMessage ( systemPrompt , messages )
437- for await ( const _chunk of stream ) {
438- // Consume the stream
439- }
440-
441- // After streaming, reasoning content should be accumulated
442- const reasoningContent = reasonerHandler . getReasoningContent ( )
443- expect ( reasoningContent ) . toBe ( "Let me think about this... I'll analyze step by step." )
444- } )
445-
446427 it ( "should pass thinking parameter for deepseek-reasoner model" , async ( ) => {
447428 const reasonerHandler = new DeepSeekHandler ( {
448429 ...mockOptions ,
@@ -511,36 +492,6 @@ describe("DeepSeekHandler", () => {
511492 const toolCallChunks = chunks . filter ( ( chunk ) => chunk . type === "tool_call_partial" )
512493 expect ( toolCallChunks . length ) . toBeGreaterThan ( 0 )
513494 expect ( toolCallChunks [ 0 ] . name ) . toBe ( "get_weather" )
514-
515- // Reasoning content should be accumulated for potential continuation
516- const reasoningContent = reasonerHandler . getReasoningContent ( )
517- expect ( reasoningContent ) . toBeDefined ( )
518- } )
519-
520- it ( "should reset reasoning content for each new request" , async ( ) => {
521- const reasonerHandler = new DeepSeekHandler ( {
522- ...mockOptions ,
523- apiModelId : "deepseek-reasoner" ,
524- } )
525-
526- // First request
527- const stream1 = reasonerHandler . createMessage ( systemPrompt , messages )
528- for await ( const _chunk of stream1 ) {
529- // Consume the stream
530- }
531-
532- const reasoningContent1 = reasonerHandler . getReasoningContent ( )
533- expect ( reasoningContent1 ) . toBeDefined ( )
534-
535- // Second request should reset the reasoning content
536- const stream2 = reasonerHandler . createMessage ( systemPrompt , messages )
537- for await ( const _chunk of stream2 ) {
538- // Consume the stream
539- }
540-
541- // The reasoning content should be fresh from the second request
542- const reasoningContent2 = reasonerHandler . getReasoningContent ( )
543- expect ( reasoningContent2 ) . toBe ( "Let me think about this... I'll analyze step by step." )
544495 } )
545496 } )
546497} )
0 commit comments