@@ -37,7 +37,12 @@ import LLMSelector, {
37
37
modelToName ,
38
38
} from "@cocalc/frontend/frame-editors/llm/llm-selector" ;
39
39
import { useLLMHistory } from "@cocalc/frontend/frame-editors/llm/use-llm-history" ;
40
- import { IntlMessage , labels , LOCALIZATIONS } from "@cocalc/frontend/i18n" ;
40
+ import {
41
+ IntlMessage ,
42
+ labels ,
43
+ Locale ,
44
+ LOCALIZATIONS ,
45
+ } from "@cocalc/frontend/i18n" ;
41
46
import { backtickSequence } from "@cocalc/frontend/markdown/util" ;
42
47
import { LLMCostEstimation } from "@cocalc/frontend/misc/llm-cost-estimation" ;
43
48
import { useProjectContext } from "@cocalc/frontend/project/context" ;
@@ -461,7 +466,7 @@ export function LLMCellTool({ actions, id, style, llmTools, cellType }: Props) {
461
466
const [ targetLanguage , setTargetLanguage ] =
462
467
useState < TargetLanguage > ( "Python" ) ;
463
468
const [ otherLanguage , setOtherLanguage ] = useState ( "" ) ;
464
- const [ targetTextLanguage , setTargetTextLanguage ] = useState < string > ( "es" ) ; // Default to Spanish
469
+ const [ targetTextLanguage , setTargetTextLanguage ] = useState < Locale > ( "es" ) ; // Default to Spanish
465
470
const [ includeOutput , setIncludeOutput ] = useState < boolean > ( false ) ;
466
471
const [ stepByStep , setStepByStep ] = useState < boolean > ( true ) ;
467
472
const [ message , setMessage ] = useState < string > ( "" ) ;
@@ -582,13 +587,14 @@ export function LLMCellTool({ actions, id, style, llmTools, cellType }: Props) {
582
587
id ,
583
588
actions ,
584
589
llmTools ?. model ,
585
- includeOutput ,
590
+ cellTypes ,
591
+ contextRange ,
586
592
extra ,
587
- targetLanguage ,
593
+ includeOutput ,
588
594
otherLanguage ,
589
595
stepByStep ,
590
- contextRange ,
591
- cellTypes ,
596
+ targetLanguage ,
597
+ targetTextLanguage ,
592
598
] ) ;
593
599
594
600
// end of hooks
0 commit comments