@@ -407,7 +407,7 @@ $autoSettingKeyDependencies = <|
407
407
"HandlerFunctionsKeys" -> "EnableLLMServices" ,
408
408
"HybridToolMethod" -> { "Model" , "ToolsEnabled" },
409
409
"MaxCellStringLength" -> { "Model" , "MaxContextTokens" },
410
- "MaxContextTokens" -> " Model" ,
410
+ "MaxContextTokens" -> { "Authentication" , " Model" } ,
411
411
"MaxOutputCellStringLength" -> "MaxCellStringLength" ,
412
412
"MaxTokens" -> "Model" ,
413
413
"Multimodal" -> { "EnableLLMServices" , "Model" },
@@ -621,7 +621,7 @@ styleStopTokens // endDefinition;
621
621
chooseMaxCellStringLength // beginDefinition ;
622
622
chooseMaxCellStringLength [ as_ Association ] := chooseMaxCellStringLength [ as , as [ "MaxContextTokens" ] ];
623
623
chooseMaxCellStringLength [ as_ , Infinity ] := Infinity ;
624
- chooseMaxCellStringLength [ as_ , tokens : $$size ] := Ceiling [ $defaultMaxCellStringLength * tokens / 2 ^ 13 ];
624
+ chooseMaxCellStringLength [ as_ , tokens : $$size ] := Ceiling [ $defaultMaxCellStringLength * tokens / 2 ^ 14 ];
625
625
chooseMaxCellStringLength // endDefinition ;
626
626
627
627
(* ::**************************************************************************************************************:: *)
@@ -637,6 +637,7 @@ chooseMaxOutputCellStringLength // endDefinition;
637
637
(*autoMaxContextTokens*)
638
638
autoMaxContextTokens // beginDefinition ;
639
639
autoMaxContextTokens [ as_ ? ollamaQ ] := serviceMaxContextTokens @ as ;
640
+ autoMaxContextTokens [ as_ Association ? llmKitQ ] := Min [ 2 ^ 16 , autoMaxContextTokens [ as , as [ "Model" ] ] ];
640
641
autoMaxContextTokens [ as_ Association ] := autoMaxContextTokens [ as , as [ "Model" ] ];
641
642
autoMaxContextTokens [ as_ , model_ ] := autoMaxContextTokens [ as , model , toModelName @ model ];
642
643
autoMaxContextTokens [ _ , _ , name_ String ] := autoMaxContextTokens0 @ name ;
0 commit comments