File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -794,7 +794,11 @@ ${convo}
794
794
}
795
795
796
796
title = (
797
- await this . sendPayload ( instructionsPayload , { modelOptions, useChatCompletion } )
797
+ await this . sendPayload ( instructionsPayload , {
798
+ modelOptions,
799
+ useChatCompletion,
800
+ context : 'title' ,
801
+ } )
798
802
) . replaceAll ( '"' , '' ) ;
799
803
800
804
const completionTokens = this . getTokenCount ( title ) ;
@@ -1384,7 +1388,7 @@ ${convo}
1384
1388
return reply ;
1385
1389
}
1386
1390
1387
- if ( reasoningTokens . length > 0 ) {
1391
+ if ( reasoningTokens . length > 0 && this . options . context !== 'title' ) {
1388
1392
return reasoningTokens . join ( '' ) + message . content ;
1389
1393
}
1390
1394
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ const tokenValues = Object.assign(
96
96
'claude-' : { prompt : 0.8 , completion : 2.4 } ,
97
97
'command-r-plus' : { prompt : 3 , completion : 15 } ,
98
98
'command-r' : { prompt : 0.5 , completion : 1.5 } ,
99
- 'deepseek-reasoner' : { prompt : 0.14 , completion : 0.55 } ,
99
+ 'deepseek-reasoner' : { prompt : 0.14 , completion : 2.19 } ,
100
100
deepseek : { prompt : 0.07 , completion : 0.28 } ,
101
101
/* cohere doesn't have rates for the older command models,
102
102
so this was from https://artificialanalysis.ai/models/command-light/providers */
You can’t perform that action at this time.
0 commit comments