We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7627db1 + e51bca4 commit a19973bCopy full SHA for a19973b
apps/spa/src/app/modules/+chat/shared/chat.service.ts
@@ -204,10 +204,13 @@ export class ChatService {
204
this.isTyping$.next(false);
205
this.isResponding$.next(false);
206
207
+ const lastChatMessage = this.messages$.value.pop();
208
+ (lastChatMessage?.content?.[0] as TextContentBlock).text.annotations = event.data.text.annotations
209
+
210
this.messages$.next([
- ...this.messages$.value.slice(0, -1),
211
+ ...this.messages$.value,
212
{
- ...this.messages$.value.pop(),
213
+ ...lastChatMessage,
214
annotations: event.annotations,
215
},
216
]);
0 commit comments