@@ -1949,7 +1949,8 @@ describe('Unit testing of the generative factory class', () => {
19491949 maxTokens : 100 ,
19501950 temperature : 0.7 ,
19511951 topP : 0.9 ,
1952- systemPrompt : 'system' ,
1952+ systemPrompt :
1953+ 'You are a helpful assistant that provides accurate and informative responses based on the given context.' ,
19531954 avoidCommentary : false ,
19541955 } ) ;
19551956 expect ( config ) . toEqual < ModuleConfig < 'generative-contextualai' , GenerativeContextualAIConfig > > ( {
@@ -1959,7 +1960,8 @@ describe('Unit testing of the generative factory class', () => {
19591960 maxTokensProperty : 100 ,
19601961 temperatureProperty : 0.7 ,
19611962 topPProperty : 0.9 ,
1962- systemPromptProperty : 'system' ,
1963+ systemPromptProperty :
1964+ 'You are a helpful assistant that provides accurate and informative responses based on the given context.' ,
19631965 avoidCommentaryProperty : false ,
19641966 } ,
19651967 } ) ;
@@ -2309,15 +2311,13 @@ describe('Unit testing of the reranker factory class', () => {
23092311
23102312 it ( 'should create the correct RerankerContextualAIConfig type with all values' , ( ) => {
23112313 const config = configure . reranker . contextualai ( {
2312- baseURL : 'https://api.contextual.ai' ,
23132314 model : 'ctxl-rerank-v2-instruct-multilingual' ,
23142315 instruction : 'Custom reranking instruction' ,
23152316 topN : 10 ,
23162317 } ) ;
23172318 expect ( config ) . toEqual < ModuleConfig < 'reranker-contextualai' , RerankerContextualAIConfig | undefined > > ( {
23182319 name : 'reranker-contextualai' ,
23192320 config : {
2320- baseURL : 'https://api.contextual.ai' ,
23212321 model : 'ctxl-rerank-v2-instruct-multilingual' ,
23222322 instruction : 'Custom reranking instruction' ,
23232323 topN : 10 ,
0 commit comments