@dataclouder/ngx-agent-cards 0.1.7 → 0.1.8
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.
- package/fesm2022/dataclouder-ngx-agent-cards.mjs +3 -1
- package/fesm2022/dataclouder-ngx-agent-cards.mjs.map +1 -1
- package/lib/lib.md +0 -0
- package/lib/models/models.md +0 -0
- package/lib/pipes/pipes.md +0 -0
- package/lib/services/services.md +0 -0
- package/ngx-agent-cards.md +0 -0
- package/package.json +1 -1
|
@@ -1497,7 +1497,6 @@ class ConversationService {
|
|
|
1497
1497
|
model: conversationSettings.model || { modelName: '', provider: '' },
|
|
1498
1498
|
};
|
|
1499
1499
|
this.isThinkingSignal.set(true);
|
|
1500
|
-
// Call AI service
|
|
1501
1500
|
const response = await this.agentCardService.callChatCompletion(conversation);
|
|
1502
1501
|
if (!response) {
|
|
1503
1502
|
console.error('No message returned from AI, is your service working?');
|
|
@@ -1516,6 +1515,7 @@ class ConversationService {
|
|
|
1516
1515
|
this.messagesSignal.set([]);
|
|
1517
1516
|
}
|
|
1518
1517
|
async getTTSFile(message) {
|
|
1518
|
+
debugger;
|
|
1519
1519
|
const userChatSettings = await this.userDataExchange.getUserChatSettings();
|
|
1520
1520
|
const ttsRequest = buildObjectTTSRequest(message, userChatSettings);
|
|
1521
1521
|
return this.agentCardService.getTextAudioFile(ttsRequest);
|
|
@@ -2327,6 +2327,7 @@ class MessageOrchestratorComponent {
|
|
|
2327
2327
|
this.preGenerationInProgress = false;
|
|
2328
2328
|
}
|
|
2329
2329
|
ngOnInit() {
|
|
2330
|
+
debugger;
|
|
2330
2331
|
if (this.messageRole() === ChatRole.Assistant) {
|
|
2331
2332
|
console.log('MessageOrchestratorComponent initialized', this.messages());
|
|
2332
2333
|
const chatSettings = this.conversationService.getUserSettings();
|
|
@@ -2438,6 +2439,7 @@ class MessageOrchestratorComponent {
|
|
|
2438
2439
|
try {
|
|
2439
2440
|
const text = overwriteText || message.text || message.content;
|
|
2440
2441
|
const ttsObject = buildObjectTTSRequest({ ...message, text }, { highlightWords: true });
|
|
2442
|
+
debugger;
|
|
2441
2443
|
const speechAudio = await this.conversationService.getTTSFile(ttsObject);
|
|
2442
2444
|
message = extractAudioAndTranscription(message, speechAudio);
|
|
2443
2445
|
return message;
|