@dataclouder/ngx-agent-cards 0.1.46 → 0.1.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2293,8 +2293,8 @@ This is the conversation history:
2293
2293
  }
2294
2294
  const conversationContext = this.contextEngineService.getConversationContext(ContextType.AllConversation);
2295
2295
  // TODO change the english!
2296
- const baseLangDesc = getLangDesc(this.userService.user()?.settings.baseLanguage, 'en');
2297
- const targetLangDesc = getLangDesc(this.userService.user()?.settings.targetLanguage, 'en');
2296
+ const baseLangDesc = getLangDesc(this.userService.user()?.settings?.baseLanguage, 'en');
2297
+ const targetLangDesc = getLangDesc(this.userService.user()?.settings?.targetLanguage, 'en');
2298
2298
  let prompt = performanceAnalysisPromptTemplate(baseLangDesc, targetLangDesc);
2299
2299
  prompt += `\n\nHere the user conversation: <Context>${conversationContext}</Context>`;
2300
2300
  this.loadingBarService.showIndeterminate();